File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ if(DISPATCH_ENABLE_ASSERTS)
111
111
DISPATCH_DEBUG=1)
112
112
endif ()
113
113
114
- if ("${CMAKE_C_SIMULATE_ID } " STREQUAL "MSVC" )
114
+ if ("${CMAKE_C_COMPILER_FRONTEND_VARIANT } " STREQUAL "MSVC" )
115
115
target_compile_options (dispatch PRIVATE /EHs-c-)
116
116
target_compile_options (dispatch PRIVATE /W3)
117
117
else ()
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ function(add_unit_test name)
83
83
target_include_directories (${name}
84
84
SYSTEM BEFORE PRIVATE
85
85
"${BlocksRuntime_INCLUDE_DIR} " )
86
- if ("${CMAKE_C_SIMULATE_ID } " STREQUAL "MSVC" )
86
+ if ("${CMAKE_C_COMPILER_FRONTEND_VARIANT } " STREQUAL "MSVC" )
87
87
target_compile_options (${name} PRIVATE -Xclang -fblocks)
88
88
target_compile_options (${name} PRIVATE /W3 -Wno-deprecated-declarations)
89
89
else ()
You can’t perform that action at this time.
0 commit comments