diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-07-27 01:59:27 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-26 10:59:27 -0700 |
| commit | be01bbc3e1bd99d212225168c6c41329b5dbc969 (patch) | |
| tree | b1c6d79d7604e9b78d9d44fea6e068995a1f7933 /ports/libsigcpp/portfile.cmake | |
| parent | 1a2931b8ccf0b7eab716be56a3d1c7bcf92d50f2 (diff) | |
| download | vcpkg-be01bbc3e1bd99d212225168c6c41329b5dbc969.tar.gz vcpkg-be01bbc3e1bd99d212225168c6c41329b5dbc969.zip | |
[libsigcpp] Fix usage in static build (#18944)
* [libsigcpp] Fix usage in static build
* Update version files
* Apply review suggestions
* Update versions/l-/libsigcpp.json
Co-authored-by: Billy Robert ONeal III <bion@microsoft.com>
Diffstat (limited to 'ports/libsigcpp/portfile.cmake')
| -rw-r--r-- | ports/libsigcpp/portfile.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/libsigcpp/portfile.cmake b/ports/libsigcpp/portfile.cmake index 7dceaa2f4..2328d3562 100644 --- a/ports/libsigcpp/portfile.cmake +++ b/ports/libsigcpp/portfile.cmake @@ -7,6 +7,7 @@ vcpkg_from_github( PATCHES
disable_tests_enable_static_build.patch
version.patch
+ fix-usage-in-static-build.patch
)
vcpkg_configure_cmake(
@@ -17,5 +18,9 @@ vcpkg_copy_pdbs() vcpkg_fixup_pkgconfig()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sigc++-3 TARGET_PATH share/sigc++-3)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/sigc++-3.0/include/sigc++config.h" "ifdef BUILD_SHARED" "if 1")
+endif()
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
-file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
