mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 06:59:00 +08:00
30 lines
863 B
CMake
30 lines
863 B
CMake
# header-only library
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO taskflow/taskflow
|
|
REF v2.7.0
|
|
SHA512 1498739cfe5af9ce66815a82c18edde38a4806d9288c8c7859b8f1621f8353258adfaf80275d4a2294cc3dc09365d8a18219210453aa1b7bb7658abd026b13f2
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DTF_BUILD_BENCHMARKS=OFF
|
|
-DTF_BUILD_CUDA=OFF
|
|
-DTF_BUILD_TESTS=OFF
|
|
-DTF_BUILD_EXAMPLES=OFF
|
|
-DBUILD_TESTING=OFF
|
|
-DCMAKE_CUDA_COMPILER=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Taskflow)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|