From dfba3f04e921717297b0a41c9a1baeb0be5ea446 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 17 Oct 2019 17:32:26 +0200 Subject: [PATCH] Fix FindTBB on linux in debug mode. --- cmake/modules/FindTBB.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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)