diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-10-17 18:32:26 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-10-17 18:32:26 +0300 |
commit | dfba3f04e921717297b0a41c9a1baeb0be5ea446 (patch) | |
tree | 1238a318c6c8a3a00b89a089903b429fba828497 /cmake | |
parent | f9710eff088efff90175a4341a91008f0162f9d7 (diff) |
Fix FindTBB on linux in debug mode.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindTBB.cmake | 4 |
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) |