Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-10-17 18:32:26 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-10-17 18:32:26 +0300
commitdfba3f04e921717297b0a41c9a1baeb0be5ea446 (patch)
tree1238a318c6c8a3a00b89a089903b429fba828497 /cmake
parentf9710eff088efff90175a4341a91008f0162f9d7 (diff)
Fix FindTBB on linux in debug mode.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindTBB.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake
index b09bafda3..ffdee03ac 100644
--- a/cmake/modules/FindTBB.cmake
+++ b/cmake/modules/FindTBB.cmake
@@ -260,6 +260,10 @@ if(NOT TBB_FOUND)
if(TBB_LIBRARIES_${TBB_BUILD_TYPE})
set(TBB_LIBRARIES "${TBB_LIBRARIES_${TBB_BUILD_TYPE}}")
endif()
+
+ if(NOT MSVC AND NOT TBB_LIBRARIES)
+ set(TBB_LIBRARIES ${TBB_LIBRARIES_RELEASE})
+ endif()
if (MSVC AND TBB_STATIC)
set(TBB_DEFINITIONS __TBB_NO_IMPLICIT_LINKAGE)