Browse Source

Do not use -Wsuggest-override option if KICAD_SCRIPTING is enabled because it creates too many useless warnings when compiling pcbnewPYTHON_wrap.cxx

pull/3/merge
jean-pierre charras 9 years ago
parent
commit
c9fec4a4ed
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -180,7 +180,9 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
CHECK_CXX_COMPILER_FLAG("-Wsuggest-override" COMPILER_SUPPORTS_WSUGGEST_OVERRIDE)
if(COMPILER_SUPPORTS_WSUGGEST_OVERRIDE)
# Swig generated files do not use override specifier and create a lot of warnings
# So do not use -Wsuggest-override with KICAD_SCRIPTING ON, untill a best way is found
if(COMPILER_SUPPORTS_WSUGGEST_OVERRIDE AND NOT KICAD_SCRIPTING)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsuggest-override")
endif()
endif()

Loading…
Cancel
Save