From 180402c36fae9e633a7dbb591770534bde2bab37 Mon Sep 17 00:00:00 2001 From: maier Date: Sun, 14 Apr 2013 07:05:05 +0000 Subject: [PATCH] CMake: Bugfixes in FindTBB.cmake git-svn-id: https://svn.dealii.org/trunk@29266 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/modules/FindTBB.cmake | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ) -- 2.39.5