diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index b524f0f258..0ae24f0bd5 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -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()