mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[cpprestsdk] Fix usage issue when building static (#12006)
This commit is contained in:
parent
2ad479e667
commit
088963227e
@ -1,5 +1,5 @@
|
|||||||
Source: cpprestsdk
|
Source: cpprestsdk
|
||||||
Version: 2.10.16-2
|
Version: 2.10.16-3
|
||||||
Build-Depends: openssl (!uwp&!windows), boost-system (!uwp&!windows),
|
Build-Depends: openssl (!uwp&!windows), boost-system (!uwp&!windows),
|
||||||
boost-date-time (!uwp&!windows), boost-regex (!uwp&!windows), boost-thread (!uwp&!windows),
|
boost-date-time (!uwp&!windows), boost-regex (!uwp&!windows), boost-thread (!uwp&!windows),
|
||||||
boost-filesystem (!uwp&!windows), boost-random (!uwp&!windows), boost-chrono (!uwp&!windows),
|
boost-filesystem (!uwp&!windows), boost-random (!uwp&!windows), boost-chrono (!uwp&!windows),
|
||||||
|
@ -45,4 +45,9 @@ vcpkg_copy_pdbs()
|
|||||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/share/${PORT})
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/share/${PORT})
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/share ${CURRENT_PACKAGES_DIR}/lib/share)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/share ${CURRENT_PACKAGES_DIR}/lib/share)
|
||||||
|
|
||||||
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||||
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/cpprest/details/cpprest_compat.h
|
||||||
|
"#ifdef _NO_ASYNCRTIMP" "#if 1")
|
||||||
|
endif()
|
||||||
|
|
||||||
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user