vcpkg/ports/taskflow/portfile.cmake
chausner 0adcf54f03
[Taskflow] update to 3.2.0 (#20122)
* Update taskflow to 3.2.0

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-09-13 14:43:59 -07:00

30 lines
905 B
CMake

# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO taskflow/taskflow
REF cbcf750895259d1e01089d4cc4535dc962bc7848 #v3.2.0
SHA512 584f81a8c9d314fbd5bc3497cead659488e17ded90cca9144e867ea5d18f50bd8bc554eaefc21ed82e73b5c92a89c5502434e214b0543b65442a2c261d2ef396
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)