mirror of https://github.com/microsoft/vcpkg.git
Merge pull request #484 from chrullrich/boost-no-autolink
Disable Boost auto-link.
This commit is contained in:
commit
5a3881a083
|
|
@ -1,4 +1,4 @@
|
||||||
Source: boost
|
Source: boost
|
||||||
Version: 1.62-9
|
Version: 1.62-10
|
||||||
Description: Peer-reviewed portable C++ source libraries
|
Description: Peer-reviewed portable C++ source libraries
|
||||||
Build-Depends: zlib
|
Build-Depends: zlib
|
||||||
|
|
|
||||||
|
|
@ -108,11 +108,10 @@ file(
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||||
)
|
)
|
||||||
|
|
||||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
# Disable Boost auto-link.
|
||||||
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
|
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
|
||||||
"\n#define BOOST_ALL_DYN_LINK\n"
|
"\n#define BOOST_ALL_NO_LIB\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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue