Skip to content

Commit

Permalink
FindTBB.cmake: read both TBBROOT and TBB_ROOT (#4252)
Browse files Browse the repository at this point in the history
FindTBB.cmake: read both TBBROOT and TBB_ROOT
  • Loading branch information
lrineau authored Sep 27, 2019
2 parents 5e64fde + 7e36ab1 commit a28d155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Installation/cmake/modules/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit a28d155

Please sign in to comment.