Fix disable warnings to be compatible

GCC and Clang both support the short mnemonic `-w` to disable warnings,
so use that to be compatible

Fixes https://gitlab.com/kicad/code/kicad/issues/9446
This commit is contained in:
Seth Hillbrand 2021-10-24 07:28:48 -07:00
parent fda95fc3aa
commit d202b78dc4
1 changed files with 2 additions and 2 deletions

View File

@ -389,9 +389,9 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
if( MSYS )
# For some reason the .cxx file generated by SWIG cannot be linked if compiled with debug options:
# it creates a *lot* of not found symbols. So compile it with release mode
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -Wno-everything" )
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -w" )
else()
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-Wno-everything" )
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-w" )
endif()
endif()