2018-11-29 19:00:40 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-06-05 03:20:25 +08:00
|
|
|
REPO taskflow/taskflow
|
2020-08-25 05:33:32 +08:00
|
|
|
REF v2.5.0
|
|
|
|
SHA512 49f38a14a207db085a2e3581b3698cdb3be4fa65c11194db454bd2fb65da2d744347c6a10a7a903b04cc2dd5cac65ef389d400c66d2a23521c3bbe2283357890
|
2018-11-29 19:00:40 +08:00
|
|
|
HEAD_REF master
|
2020-08-25 05:33:32 +08:00
|
|
|
PATCHES fix-compiler-error.patch
|
2018-11-29 19:00:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DTF_BUILD_EXAMPLES=OFF
|
2020-08-25 05:33:32 +08:00
|
|
|
-DBUILD_TESTING=OFF
|
2018-11-29 19:00:40 +08:00
|
|
|
-DTF_BUILD_BENCHMARKS=OFF
|
2020-08-25 05:33:32 +08:00
|
|
|
-DCMAKE_CUDA_COMPILER=OFF
|
2018-11-29 19:00:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-08-25 05:33:32 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|