From: vsr Date: Wed, 17 Mar 2021 15:08:41 +0000 (+0300) Subject: Porting to Paraview 5.9: adapt TBB detection procedure to correctly work with FindTBB... X-Git-Tag: V9_7_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c15b9b7fc83067ad0fbe29af7eac74fdc0b4175c;p=tools%2Fconfiguration.git Porting to Paraview 5.9: adapt TBB detection procedure to correctly work with FindTBB.cmake that comes from rkcommon --- diff --git a/cmake/FindSalomeTBB.cmake b/cmake/FindSalomeTBB.cmake index 6e41f63..1060241 100644 --- a/cmake/FindSalomeTBB.cmake +++ b/cmake/FindSalomeTBB.cmake @@ -30,7 +30,15 @@ ELSEIF(TBB_IMPORTED_TARGETS) #Config mode SET(TBB_LIBRARIES ${TBB_IMPORTED_TARGETS}) ELSE() - MESSAGE(FATAL_ERROR "Can't find tbb installation!") + IF(TARGET TBB::tbb) + LIST(APPEND TBB_LIBRARIES TBB::tbb) + ENDIF() + IF(TARGET TBB::tbbmalloc) + LIST(APPEND TBB_LIBRARIES TBB::tbbmalloc) + ENDIF() + IF(NOT TBB_LIBRARIES) + MESSAGE(FATAL_ERROR "Can't find tbb installation!") + ENDIF() ENDIF() IF(TBB_FOUND)