diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 10b014c162..de18ccad30 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -618,6 +618,13 @@ if( KICAD_SCRIPTING ) # fix bundle after copying wxpython, fixing and copying add_dependencies( osx_fix_bundles pcbnew_copy_wxpython_scripting ) + + if ( KICAD_SCRIPTING_MODULES ) + #they do more or less the same job, avoid race between them + #Cmake copy goes in error otherwise + add_dependencies( pcbnew_copy_wxpython_scripting pcbnew_copy_wxpython_module ) + endif() + endif() endif()