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 7903bf2 + c9e4dff commit ce0c057Copy full SHA for ce0c057
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