2020-09-12 03:12:04 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO taskflow/taskflow
|
2023-01-24 08:01:14 +08:00
|
|
|
REF v3.5.0
|
|
|
|
SHA512 0e80a96eacce05cb09eb3e75634ba9f27c86d84b56903897e954e04fa68cadc3c2fe69857f8dc60da330c9abd5e4c7e1164f3c5f695ad8bb38a1ccbc001f8652
|
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
|
2022-02-08 11:03:00 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|