We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1a8fd commit ea90580Copy full SHA for ea90580
1 file changed
3rdparty/CMakeLists.txt
@@ -10,7 +10,16 @@ option(TBB_EXAMPLES "Build TBB examples" OFF)
10
set(TBB_STRICT OFF CACHE BOOL "Treat compiler warnings as errors")
11
12
# Configure TBB with unified settings
13
+if(WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
14
+ AND NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "MSVC")
15
+ set(_itlabai_saved_mingw "${MINGW}")
16
+ set(MINGW TRUE)
17
+endif()
18
add_subdirectory(TBB)
19
+if(DEFINED _itlabai_saved_mingw)
20
+ set(MINGW "${_itlabai_saved_mingw}")
21
+ unset(_itlabai_saved_mingw)
22
23
24
# Create a unified TBB interface target
25
if(NOT TARGET TBB_unified)
0 commit comments