From 08423be1555b2256dbc564a156ac5ff54860bc73 Mon Sep 17 00:00:00 2001 From: mfornace Date: Mon, 24 Aug 2020 14:33:32 -0700 Subject: [cpp-taskflow] Update to 2.5.0 (#12923) Co-authored-by: JackBoosY --- ports/cpp-taskflow/CONTROL | 2 +- ports/cpp-taskflow/fix-compiler-error.patch | 31 +++++++++++++++++++++++++++++ ports/cpp-taskflow/portfile.cmake | 10 ++++++---- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 ports/cpp-taskflow/fix-compiler-error.patch (limited to 'ports/cpp-taskflow') diff --git a/ports/cpp-taskflow/CONTROL b/ports/cpp-taskflow/CONTROL index ee3e33ed0..72ef86c8e 100644 --- a/ports/cpp-taskflow/CONTROL +++ b/ports/cpp-taskflow/CONTROL @@ -1,4 +1,4 @@ Source: cpp-taskflow -Version: 2.2.0-1 +Version: 2.5.0 Description: Fast Parallel Tasking Programming Library using Modern C++. Homepage: https://github.com/taskflow/taskflow diff --git a/ports/cpp-taskflow/fix-compiler-error.patch b/ports/cpp-taskflow/fix-compiler-error.patch new file mode 100644 index 000000000..1bcdcd41f --- /dev/null +++ b/ports/cpp-taskflow/fix-compiler-error.patch @@ -0,0 +1,31 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9beec931..6782f1d5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -89,7 +89,7 @@ target_compile_options( + $<$:-Wall -Wextra -Wfatal-errors> + $<$,$>:-Wall -Wextra -Wfatal-errors> + $<$,$>:-Wall -Wextra -Wfatal-errors> +- $<$,$>:/W3 /permissive-> ++ $<$,$>:/bigobj /W3 /permissive-> + #$<$:-Xcompiler=-Wall,-Wextra,-Wfatal-errors> + #$<$:-Wall -Wextra -Wfatal-errors> + #$<$:-Wall -Wextra -Wfatal-errors> +@@ -219,6 +219,8 @@ target_include_directories(${PROJECT_NAME} INTERFACE + # Example program + # ----------------------------------------------------------------------------- + ++if(BUILD_TEST) ++ + message(STATUS "Building examples ...") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${TF_EXAMPLE_DIR}) + +@@ -617,6 +619,8 @@ add_test(cuda_kmeans.1000.16C16G ${TF_UTEST_CUDA_KMEANS} -tc=kmeans.1000.16C16G) + + endif(CMAKE_CUDA_COMPILER) + ++endif() ++ + # ----------------------------------------------------------------------------- + # Benchmarking (enabled by TF_BUILD_BENCHMARKS) + # ----------------------------------------------------------------------------- diff --git a/ports/cpp-taskflow/portfile.cmake b/ports/cpp-taskflow/portfile.cmake index 8e2964337..735a08d47 100644 --- a/ports/cpp-taskflow/portfile.cmake +++ b/ports/cpp-taskflow/portfile.cmake @@ -2,9 +2,10 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO taskflow/taskflow - REF v2.2.0 - SHA512 1aa4e9d7324f56eb33cd4986d721035f0abf12e022da956bafc0b16cf6cb82d152334ae58edc4581ab2f6d44989ca21cdd590ad560d6f1a4f905710fe08d0091 + REF v2.5.0 + SHA512 49f38a14a207db085a2e3581b3698cdb3be4fa65c11194db454bd2fb65da2d744347c6a10a7a903b04cc2dd5cac65ef389d400c66d2a23521c3bbe2283357890 HEAD_REF master + PATCHES fix-compiler-error.patch ) vcpkg_configure_cmake( @@ -12,8 +13,9 @@ vcpkg_configure_cmake( PREFER_NINJA OPTIONS -DTF_BUILD_EXAMPLES=OFF - -DTF_BUILD_TESTS=OFF + -DBUILD_TESTING=OFF -DTF_BUILD_BENCHMARKS=OFF + -DCMAKE_CUDA_COMPILER=OFF ) vcpkg_install_cmake() @@ -23,4 +25,4 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) # Handle copyright -configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY) \ No newline at end of file +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) -- cgit v1.2.3