mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 07:19:08 +08:00
946fa300e7
* Update to 2.5.0 * Disable unit test building; 2.5.0 uses BUILD_TESTING flag * Attempt to add /bigobj since I'm not sure how to disable building examples target * Fix build error when building x64 targets * Add more to the patch, remove sections with add_executable from CMakeLists.txt * Guard with BUILD_TEST, put compile option in * Disable CUDA * Change name of package to taskflow * Add patch so it's back to Cpp-Taskflow::Cpp-Taskflow... * Update CONTROL * Move - down to Port-Version. * Add taskflow 2.6.0 * Update cpp-taskflow to 2.4.0 and disable test building * Change 'cpp-taskflow' to merely depend on 'taskflow'. * Remove osx skip. * Fix up portfile and remove patch file since not needed for header-only * Case fix for Linux Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.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 v2.6.0
|
|
SHA512 43b023c7d744ae1e0baf6f504f32da481e950ec5cc34fe5511e4bbb8905203e4726917ee103b1c02544a75c6216c2ca481034be810b61a35511a3d7a2b278133
|
|
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)
|