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 863dfca + 46ccacd commit 901b73eCopy full SHA for 901b73e
cmake/modules/SwiftSharedCMakeConfig.cmake
@@ -290,8 +290,9 @@ macro(swift_common_cxx_warnings)
290
291
# Disable C4068: unknown pragma. This means that MSVC doesn't report hundreds of warnings across
292
# the repository for IDE features such as #pragma mark "Title".
293
- check_cxx_compiler_flag("/wd4068" CXX_SUPPORTS_UNKNOWN_PRAGMA_FLAG)
294
- append_if(CXX_SUPPORTS_UNKNOWN_PRAGMA_FLAG "/wd4068" CMAKE_CXX_FLAGS)
+ if("${CMAKE_C_COMPILER_ID}" STREQUAL "MSVC")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4068")
295
+ endif()
296
endmacro()
297
298
# Like 'llvm_config()', but uses libraries from the selected build
0 commit comments