Correct tbb detection procedure

This commit is contained in:
vsr 2013-11-14 14:07:03 +00:00
parent 301a74fd98
commit 629f12cf13

View File

@ -39,7 +39,7 @@ IF(TBB_ROOT_DIR)
LIST(APPEND CMAKE_PREFIX_PATH "${TBB_ROOT_DIR}") LIST(APPEND CMAKE_PREFIX_PATH "${TBB_ROOT_DIR}")
ENDIF(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) SET(TBBKERNEL cc4.1.0_libc2.4_kernel2.6.16.21)
@ -58,4 +58,4 @@ SET(TBB_LIBRARIES
) )
INCLUDE(FindPackageHandleStandardArgs) INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRATY_tbbmalloc) FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB REQUIRED_VARS TBB_INCLUDE_DIRS TBB_LIBRARY_tbb TBB_LIBRATY_tbbmalloc)