Fix incorrect parameter if the compiler doesn't support -Wshadow option

This commit is contained in:
Simon Richter 2017-02-23 17:04:26 +01:00 committed by jean-pierre charras
parent 88fb7483eb
commit 3bf0b9534c
1 changed files with 8 additions and 5 deletions

View File

@ -342,11 +342,14 @@ set( PCBNEW_SCRIPTING_PYTHON_HELPERS
)
if( COMPILER_SUPPORTS_WSHADOW )
# .cpp files are compiled with extra ${WSHADOW_FLAGS}, but not .cxx files
set_source_files_properties(
${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS}
)
endif()
if( KICAD_SCRIPTING )
set( PCBNEW_SCRIPTING_SRCS