First search for TBB in config mode

This commit is contained in:
Maxime Gimeno 2021-05-06 14:41:08 +02:00
parent 56e09b7a7b
commit 74b3504879
1 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,11 @@ endmacro()
# 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}}
getenv_path(TBB_ROOT)