mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 10:19:01 +08:00
421777e4b2
* update taskflow portfile to 3.0.0 * update version Co-authored-by: Jonliu1993 <13720414433@163.com>
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 v3.0.0
|
|
SHA512 5c838ff4436ade1f3755eb6859f724188be2bfcd11baf172413a0bdc18bc516b7b911e6d83a140c95548f844a8c8b908992bdec10b3b6569876a3e3b2d5b821e
|
|
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)
|