vcpkg/ports/libsigcpp/fix-shared-windows-build.patch
chausner bf7c9673c5
[libsigcpp] Update to 3.0.7 (#21404)
* Update libsigcpp to 3.0.7

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-11-15 14:18:41 -08:00

18 lines
518 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,8 +53,11 @@ set (PROJECT_SOURCE_DIR "${sigc++_SOURCE_DIR}/sigc++")
include_directories (${sigc++_SOURCE_DIR})
include_directories (${sigc++_BINARY_DIR})
-if(BUILD_SHARED_LIBS)
- add_compile_options(-DBUILD_SHARED)
+if (BUILD_SHARED_LIBS)
+ add_compile_options (-DBUILD_SHARED)
+ if (MSVC)
+ add_compile_options (-D_WINDLL)
+ endif()
endif()
configure_file (sigc++config.h.cmake sigc++config.h)