mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
[boost] The #define BOOST_ALL_DYN_LINK should be added only in dynamic linkage
This commit is contained in:
parent
70c4cbce77
commit
a72be4b6b9
@ -1,3 +1,3 @@
|
||||
Source: boost
|
||||
Version: 1.62-2
|
||||
Version: 1.62-3
|
||||
Description: Peer-reviewed portable C++ source libraries
|
||||
|
@ -90,14 +90,14 @@ message(STATUS "Packaging headers")
|
||||
file(
|
||||
COPY ${SOURCE_PATH}/boost
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||
PATTERN "config/user.hpp" EXCLUDE
|
||||
)
|
||||
file(COPY ${SOURCE_PATH}/boost/config/user.hpp
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include/boost/config/
|
||||
)
|
||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
|
||||
"\n#define BOOST_ALL_DYN_LINK\n"
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
|
||||
"\n#define BOOST_ALL_DYN_LINK\n"
|
||||
)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost RENAME copyright)
|
||||
message(STATUS "Packaging headers done")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user