mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 04:07:54 +08:00
554668ce8d
* [cpp-taskflow] update to 2.2.0 * use release tag instead of the commit id
30 lines
803 B
CMake
30 lines
803 B
CMake
# header-only library
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cpp-taskflow/cpp-taskflow
|
|
REF v2.2.0
|
|
SHA512 c075f1b7e4dd6ed6d9561b860b660ee4b28eddb321d8aa8746fbec45b1039ab686700156e4273da5a4ac7af0707975331befd9bf3e51f18925ea3a9a60083549
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DTF_BUILD_EXAMPLES=OFF
|
|
-DTF_BUILD_TESTS=OFF
|
|
-DTF_BUILD_BENCHMARKS=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
# Handle copyright
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/cpp-taskflow/copyright COPYONLY)
|