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
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-12-16 12:56:59 +0300
committertamasmeszaros <meszaros.q@gmail.com>2022-02-03 18:03:46 +0300
commiteddcebf929c507b0a37c96b29a20f877e405dc55 (patch)
tree6b63ae974b9f48c7d7e296a9169314a22ee88d20 /cmake/modules
parent030f4601149704fb3213ef44ca9c9910a1548ed0 (diff)
Fix repeated calls to FindTBB in module mode.
fixes #6355
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindTBB.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindTBB.cmake.in b/cmake/modules/FindTBB.cmake.in
index a7eafa545..49e405c18 100644
--- a/cmake/modules/FindTBB.cmake.in
+++ b/cmake/modules/FindTBB.cmake.in
@@ -293,7 +293,7 @@ if(NOT TBB_FOUND)
# Create targets
##################################
- if(NOT CMAKE_VERSION VERSION_LESS 3.0 AND TBB_FOUND)
+ if(NOT CMAKE_VERSION VERSION_LESS 3.0 AND TBB_FOUND AND NOT TARGET TBB::tbb)
add_library(TBB::tbb UNKNOWN IMPORTED)
set_target_properties(TBB::tbb PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "${TBB_DEFINITIONS}"