]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 86251788bd30c4c6da0acc09ead816af1d54220d..d5cff334fcfaccce4bbbbd52e1b101050a63c328 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)