mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 03:49:00 +08:00
20 lines
956 B
CMake
20 lines
956 B
CMake
# Automatically generated by scripts/boost/generate-ports.ps1
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO boostorg/config
|
|
REF boost-1.74.0
|
|
SHA512 2dfd49f4d20dfbad17304d577d64c7b6af04a3152591b415c4dd4926029e46bf1c45a6b894674a42cbfc9a1d2f85e4ed80c1210b78086a03c9ff2f0a72b5ec89
|
|
HEAD_REF master
|
|
)
|
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
|
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
|
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp "\n#ifndef BOOST_ALL_NO_LIB\n#define BOOST_ALL_NO_LIB\n#endif\n")
|
|
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp "\n#undef 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(COPY ${SOURCE_PATH}/checks DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-config)
|