diff --git a/Installation/cmake/modules/FindTBB.cmake b/Installation/cmake/modules/FindTBB.cmake index b1a3d884c659..23caa1cbf9a4 100644 --- a/Installation/cmake/modules/FindTBB.cmake +++ b/Installation/cmake/modules/FindTBB.cmake @@ -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 "")