We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dea1192 commit f3ae0bcCopy full SHA for f3ae0bc
1 file changed
3rdparty/CMakeLists.txt
@@ -10,7 +10,18 @@ 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
+set(_itlabai_restore_msvc FALSE)
14
+if(ITLABAI_ENABLE_SYCL AND WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
15
+ CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC" AND NOT MSVC)
16
+ # oneTBB keys off MSVC here; clang++ with the MSVC target otherwise gets
17
+ # non-Windows flags such as -fPIC.
18
+ set(_itlabai_restore_msvc TRUE)
19
+ set(MSVC TRUE)
20
+endif()
21
add_subdirectory(TBB)
22
+if(_itlabai_restore_msvc)
23
+ unset(MSVC)
24
25
26
# Create a unified TBB interface target
27
if(NOT TARGET TBB_unified)
0 commit comments