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
|
if( COMPILER_SUPPORTS_WSHADOW )
|
||||||
set_source_files_properties(
|
# .cpp files are compiled with extra ${WSHADOW_FLAGS}, but not .cxx files
|
||||||
${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
|
set_source_files_properties(
|
||||||
PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS}
|
${PCBNEW_SRCS} ${PCBNEW_COMMON_SRCS} ${PCBNEW_SCRIPTING_DIALOGS} ${PCBNEW_SCRIPTING_PYTHON_HELPERS}
|
||||||
)
|
PROPERTIES COMPILE_FLAGS ${WSHADOW_FLAGS}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if( KICAD_SCRIPTING )
|
if( KICAD_SCRIPTING )
|
||||||
set( PCBNEW_SCRIPTING_SRCS
|
set( PCBNEW_SCRIPTING_SRCS
|
||||||
|
|
Loading…
Reference in New Issue