From 2e047b45b4f4402400d427cb06fe80e4cfe9b91a Mon Sep 17 00:00:00 2001 From: Roman Beranek Date: Thu, 6 Sep 2018 01:39:15 +0200 Subject: [PATCH] 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. --- pcbnew/CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index efe36a5fe2..a66a8b1998 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -819,13 +819,15 @@ if( KICAD_SCRIPTING_MODULES ) ) else() + if( MINGW ) + # For phase 1, copy _pcbnew.kiface to the python module. + add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} + DEPENDS pcbnew_kiface + COMMAND ${CMAKE_COMMAND} -E copy _pcbnew.kiface _pcbnew.${PYMOD_EXT} + COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use." + ) + endif( MINGW ) - # For phase 1, copy _pcbnew.kiface to the python module. - add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT} - DEPENDS pcbnew_kiface - COMMAND ${CMAKE_COMMAND} -E copy _pcbnew.kiface _pcbnew.${PYMOD_EXT} - COMMENT "Creating python's pcbnew native module _pcbnew.${PYMOD_EXT} for command line use." - ) add_custom_target( pcbnew_python_module ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_pcbnew.${PYMOD_EXT}