]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfixes in FindTBB.cmake
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sun, 14 Apr 2013 07:05:05 +0000 (07:05 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sun, 14 Apr 2013 07:05:05 +0000 (07:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@29266 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindTBB.cmake

index cb603dadb86f56d4a59528322384f8b510a0e324..b3bc3ad2881f2c43a381ba8d2bbdacd71d694804 100644 (file)
@@ -29,18 +29,25 @@ SET_IF_EMPTY(TBB_DIR "$ENV{TBB_DIR}")
 FIND_PATH(TBB_INCLUDE_DIR tbb/parallel_reduce.h
   HINTS
     ${TBB_DIR}
-  PATH_SUFFIXES include include/tbb tbb)
+  PATH_SUFFIXES include include/tbb tbb
+  )
+
+FILE(GLOB _path ${TBB_DIR}/build/*_release)
 
 FIND_LIBRARY(TBB_LIBRARY
   NAMES tbb
   HINTS
+    ${_path}
     ${TBB_DIR}
   PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
   )
 
+FILE(GLOB _path ${TBB_DIR}/build/*_debug)
+
 FIND_LIBRARY(TBB_DEBUG_LIBRARY
   NAMES tbb_debug
   HINTS
+    ${_path}
     ${TBB_DIR}
   PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
   )

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.