mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 00:49:01 +08:00
a685b28593
* [grppi] Manually control use of tbb * version * Fix typo * version
25 lines
726 B
Diff
25 lines
726 B
Diff
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 )
|