aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/grppi/tbb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/grppi/tbb.patch')
-rw-r--r--vcpkg/ports/grppi/tbb.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/grppi/tbb.patch b/vcpkg/ports/grppi/tbb.patch
new file mode 100644
index 0000000..8d17ee3
--- /dev/null
+++ b/vcpkg/ports/grppi/tbb.patch
@@ -0,0 +1,24 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 09f1f9b..d58b972 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -53,15 +53,10 @@ endif()
+ include_directories("${CMAKE_SOURCE_DIR}/include")
+
+ # TBB Library
+-find_package( TBB )
+-if( TBB_FOUND )
+- option(GRPPI_TBB_ENABLE "Require TBB library" ON)
+- message(STATUS "TBB found")
+-else( TBB_FOUND )
+- option(GRPPI_TBB_ENABLE "Require TBB library" OFF )
+- set(GRPPI_TBB_ENABLE OFF CACHE BOOL "Require TBB library" FORCE)
+- message(STATUS "TBB not found")
+-endif( TBB_FOUND )
++option(GRPPI_TBB_ENABLE "Enable TBB backend" OFF)
++if(GRPPI_TBB_ENABLE)
++ find_package(TBB CONFIG REQUIRED)
++endif()
+
+ message( STATUS "TBB: " ${GRPPI_TBB_ENABLE} )
+ if( GRPPI_TBB_ENABLE )