From: maier Date: Sun, 14 Apr 2013 07:05:05 +0000 (+0000) Subject: CMake: Bugfixes in FindTBB.cmake X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=180402c36fae9e633a7dbb591770534bde2bab37;p=dealii-svn.git CMake: Bugfixes in FindTBB.cmake git-svn-id: https://svn.dealii.org/trunk@29266 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/modules/FindTBB.cmake b/deal.II/cmake/modules/FindTBB.cmake index cb603dadb8..b3bc3ad288 100644 --- a/deal.II/cmake/modules/FindTBB.cmake +++ b/deal.II/cmake/modules/FindTBB.cmake @@ -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 )