[boost] The #define BOOST_ALL_DYN_LINK should be added only in dynamic linkage

This commit is contained in:
Alexander Karatarakis 2016-11-15 11:54:02 -08:00
parent 70c4cbce77
commit a72be4b6b9
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
Source: boost Source: boost
Version: 1.62-2 Version: 1.62-3
Description: Peer-reviewed portable C++ source libraries Description: Peer-reviewed portable C++ source libraries

View File

@ -90,14 +90,14 @@ message(STATUS "Packaging headers")
file( file(
COPY ${SOURCE_PATH}/boost COPY ${SOURCE_PATH}/boost
DESTINATION ${CURRENT_PACKAGES_DIR}/include 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) file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost RENAME copyright)
message(STATUS "Packaging headers done") message(STATUS "Packaging headers done")