diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0526b9094f..63383b6d79 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -535,6 +535,12 @@ if (TARGET TBB::tbb) set_target_properties(test_openmp PROPERTIES COMPILE_FLAGS ${TBB_OPENMP_FLAG}) + # Intel LLVM compiler triggers a warning when using OpenMP in debug mode on Windows. + # The only way not to trigger it seems to be explicitly disabling it from the command line. + if (WIN32 AND (CMAKE_CXX_COMPILER_ID STREQUAL IntelLLVM) AND (CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 2025.0)) + target_compile_options(test_openmp PRIVATE $<$:-Wno-debug-option-simd>) + endif() + if (NOT TBB_OPENMP_NO_LINK_FLAG) set_target_properties(test_openmp PROPERTIES LINK_FLAGS ${TBB_OPENMP_FLAG}) endif()