FindTBB.cmake: read both TBBROOT and TBB_ROOT (#4252)

FindTBB.cmake: read both TBBROOT and TBB_ROOT
This commit is contained in:
Laurent Rineau 2019-09-27 16:17:28 +02:00 committed by GitHub
commit a28d1554b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,11 @@ endmacro()
# Get path, convert backslashes as ${ENV_${var}}
getenv_path(TBB_ROOT)
if(NOT ENV_TBB_ROOT)
getenv_path(TBBROOT)
set(ENV_TBB_ROOT ${ENV_TBBROOT})
endif()
# initialize search paths
set(TBB_PREFIX_PATH ${TBB_ROOT} ${ENV_TBB_ROOT})
set(TBB_INC_SEARCH_PATH "")