mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
714d8d5560
* [boost-vcpkg-helpers] Fix incorrect license * x-add-version
26 lines
818 B
CMake
26 lines
818 B
CMake
function(boost_modular_headers)
|
|
cmake_parse_arguments(_bm "" "SOURCE_PATH" "" ${ARGN})
|
|
|
|
if(NOT DEFINED _bm_SOURCE_PATH)
|
|
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_headers.")
|
|
endif()
|
|
|
|
message(STATUS "Copying headers")
|
|
file(
|
|
COPY "${_bm_SOURCE_PATH}/include/boost"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
|
)
|
|
message(STATUS "Copying headers done")
|
|
|
|
file(INSTALL
|
|
"${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
)
|
|
|
|
file(INSTALL
|
|
"${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost_LICENSE_1_0.txt"
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
RENAME copyright
|
|
)
|
|
endfunction()
|