From 9bdb0086b4fb29a97547218f7d2a4de6bb4d750e Mon Sep 17 00:00:00 2001 From: Marco Serantoni Date: Wed, 26 Feb 2014 21:46:25 +0100 Subject: [PATCH] [MacOSX] Avoid race between cmake -E copy_directory, which triggers a build error when using an high parallelism --- pcbnew/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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()