cmake: avoid declaring a redundant concurrent _pcbnew.so target

The "renamed _pcbnew.kiface" target should only be declared for MINGW
because for Linux it would have been already declared at line 802.
This commit is contained in:
Roman Beranek 2018-09-06 01:39:15 +02:00 committed by Wayne Stambaugh
parent 3248c270ee
commit 2e047b45b4
1 changed files with 8 additions and 6 deletions

View File

@ -819,13 +819,15 @@ if( KICAD_SCRIPTING_MODULES )
) )
else() else()
if( MINGW )
# For phase 1, copy _pcbnew.kiface to the python module. # For phase 1, copy _pcbnew.kiface to the python module.
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}
DEPENDS pcbnew_kiface DEPENDS pcbnew_kiface
COMMAND ${CMAKE_COMMAND} -E copy _pcbnew.kiface _pcbnew.${PYMOD_EXT} COMMAND ${CMAKE_COMMAND} -E copy _pcbnew.kiface _pcbnew.${PYMOD_EXT}
COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use." COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use."
) )
endif( MINGW )
add_custom_target( add_custom_target(
pcbnew_python_module ALL pcbnew_python_module ALL
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}