aboutsummaryrefslogtreecommitdiff
path: root/ports/cpp-taskflow/fix-compiler-error.patch
diff options
context:
space:
mode:
authormfornace <mfornace@users.noreply.github.com>2020-08-24 14:33:32 -0700
committerGitHub <noreply@github.com>2020-08-24 14:33:32 -0700
commit08423be1555b2256dbc564a156ac5ff54860bc73 (patch)
tree4a955a3a2cc7286b323b428dfa924a272ec95efc /ports/cpp-taskflow/fix-compiler-error.patch
parentbf594d63fce3e581a0f36404788946515e88f2de (diff)
downloadvcpkg-08423be1555b2256dbc564a156ac5ff54860bc73.tar.gz
vcpkg-08423be1555b2256dbc564a156ac5ff54860bc73.zip
[cpp-taskflow] Update to 2.5.0 (#12923)
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/cpp-taskflow/fix-compiler-error.patch')
-rw-r--r--ports/cpp-taskflow/fix-compiler-error.patch31
1 files changed, 31 insertions, 0 deletions
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(
+ $<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra -Wfatal-errors>
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:Clang>>:-Wall -Wextra -Wfatal-errors>
+ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:GNU>>:-Wall -Wextra -Wfatal-errors>
+- $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/W3 /permissive->
++ $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/bigobj /W3 /permissive->
+ #$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-Wall,-Wextra,-Wfatal-errors>
+ #$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wfatal-errors>
+ #$<$<CXX_COMPILER_ID:GNU>:-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)
+ # -----------------------------------------------------------------------------