Merge pull request #5687 from maxGimeno/CMake-Fix_FindTBB-maxGimeno

First search for TBB in config mode
This commit is contained in:
Laurent Rineau 2021-05-18 17:32:11 +02:00
commit 10efadb510
1 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,11 @@ endmacro()
# Now to actually find TBB # Now to actually find TBB
# #
#start with CONFIG Mode
find_package(TBB QUIET NO_MODULE)
if(TBB_FOUND)
return()
endif()#TBB_FOUND
# Get path, convert backslashes as ${ENV_${var}} # Get path, convert backslashes as ${ENV_${var}}
getenv_path(TBB_ROOT) getenv_path(TBB_ROOT)