Salome HOME
Correct tbb detection procedure
authorvsr <vsr@opencascade.com>
Thu, 14 Nov 2013 14:07:03 +0000 (14:07 +0000)
committervsr <vsr@opencascade.com>
Thu, 14 Nov 2013 14:07:03 +0000 (14:07 +0000)
adm_local/cmake_files/FindTBB.cmake

index 8625178..d5cff33 100644 (file)
@@ -39,7 +39,7 @@ IF(TBB_ROOT_DIR)
   LIST(APPEND CMAKE_PREFIX_PATH "${TBB_ROOT_DIR}")
 ENDIF(TBB_ROOT_DIR)
 
-FIND_PATH(TBB_INCLUDE_DIRS tbb.h PATH_SUFFIXES "include/tbb")
+FIND_PATH(TBB_INCLUDE_DIRS tbb/tbb.h PATH_SUFFIXES include)
 
 SET(TBBKERNEL cc4.1.0_libc2.4_kernel2.6.16.21)
 
@@ -58,4 +58,4 @@ SET(TBB_LIBRARIES
 )
 
 INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRATY_tbbmalloc)
\ No newline at end of file
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRATY_tbbmalloc)