Fix incorrect parameter if the compiler doesn't support -Wshadow option
This commit is contained in:
parent
88fb7483eb
commit
3bf0b9534c
|
@ -342,11 +342,14 @@ set( PCBNEW_SCRIPTING_PYTHON_HELPERS
|
|||
)
|
||||
|
||||
|
||||
# .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}
|
||||
)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue