Fix 57717a2: [CMake] Don't apply 'cl' workaround to 'clang-cl'

This commit is contained in:
glx22 2022-12-30 00:48:57 +01:00 committed by Loïc Guilloux
parent 25f247047d
commit ffc1f7ce56
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ macro(compile_flags)
if(MSVC)
add_compile_options(/W3)
if(MSVC_VERSION GREATER 1929)
if(MSVC_VERSION GREATER 1929 AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Starting with version 19.30, there is an optimisation bug, see #9966 for details
# This flag disables the broken optimisation to work around the bug
add_compile_options(/d2ssa-rse-)