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.
2 parents 65ebc0c + 1a391d7 commit 93c64d8Copy full SHA for 93c64d8
tests/CMakeLists.txt
@@ -82,7 +82,11 @@ function(add_unit_test name)
82
PRIVATE
83
${BSD_OVERLAY_CFLAGS})
84
endif()
85
- target_compile_options(${name} PRIVATE -fblocks)
+ if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
86
+ target_compile_options(${name} PRIVATE -Xclang -fblocks)
87
+ else()
88
+ target_compile_options(${name} PRIVATE -fblocks)
89
+ endif()
90
# TODO(compnerd) make this portable
91
target_compile_options(${name} PRIVATE -Wall -Wno-deprecated-declarations)
92
dispatch_set_linker(${name})
0 commit comments