2020-09-12 03:12:04 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taskflow/taskflow
|
2024-05-15 01:46:42 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 2faecc9eaf9e7f24253a5aedbb4ef6164ba8b5181b7f2c65d8646c21300f28278d7817e928eeab7e85ec2b9644508a8665bab1a7482ec85a7f6de18cecb32d6f
|
2020-09-12 03:12:04 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-02-08 11:03:00 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-12 03:12:04 +08:00
|
|
|
OPTIONS
|
|
|
|
-DTF_BUILD_BENCHMARKS=OFF
|
|
|
|
-DTF_BUILD_CUDA=OFF
|
|
|
|
-DTF_BUILD_TESTS=OFF
|
|
|
|
-DTF_BUILD_EXAMPLES=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DCMAKE_CUDA_COMPILER=OFF
|
|
|
|
)
|
|
|
|
|
2022-02-08 11:03:00 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-09-12 03:12:04 +08:00
|
|
|
|
2022-02-08 11:03:00 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Taskflow)
|
2020-09-12 03:12:04 +08:00
|
|
|
|
2022-02-08 11:03:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2020-09-12 03:12:04 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-05-11 02:17:14 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|