Skip to content

Commit

Permalink
added gcc4.7 and gcc4.1 hint for finding TBB user linux
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwoop committed Mar 1, 2019
1 parent d9ef6e4 commit df0b324
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion common/cmake/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ ELSE ()
FIND_LIBRARY(TBB_LIBRARY_MALLOC tbbmalloc PATHS ${EMBREE_TBB_ROOT}/lib NO_DEFAULT_PATH)
ELSE()
FIND_PATH(TBB_INCLUDE_DIR tbb/task_scheduler_init.h PATHS ${EMBREE_TBB_ROOT}/include NO_DEFAULT_PATH)
SET(TBB_HINTS HINTS ${EMBREE_TBB_ROOT}/lib/intel64/gcc4.4 ${EMBREE_TBB_ROOT}/lib ${EMBREE_TBB_ROOT}/lib64 PATHS /usr/libx86_64-linux-gnu/)
SET(TBB_HINTS HINTS
${EMBREE_TBB_ROOT}/lib/intel64/gcc4.7
${EMBREE_TBB_ROOT}/lib/intel64/gcc4.4
${EMBREE_TBB_ROOT}/lib/intel64/gcc4.1
${EMBREE_TBB_ROOT}/lib
${EMBREE_TBB_ROOT}/lib64
PATHS /usr/libx86_64-linux-gnu/)
FIND_LIBRARY(TBB_LIBRARY tbb ${TBB_HINTS})
FIND_LIBRARY(TBB_LIBRARY_MALLOC tbbmalloc ${TBB_HINTS})
ENDIF()
Expand Down

0 comments on commit df0b324

Please sign in to comment.