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 cc9713b commit c9e4dffCopy full SHA for c9e4dff
cmake/modules/SwiftSharedCMakeConfig.cmake
@@ -295,7 +295,9 @@ macro(swift_common_cxx_warnings)
295
296
if(MSVC)
297
check_cxx_compiler_flag("/we4062" CXX_SUPPORTS_WE4062)
298
- add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/we4062>)
+ if(CXX_SUPPORTS_WE4062)
299
+ add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/we4062>)
300
+ endif()
301
endif()
302
303
0 commit comments