← Back to team overview

kicad-developers team mailing list archive

[PATCH] Fix parallel build with KICAD_SKIP_BOOST=ON

 

I had a similar problem to bug 1285878, where the pcb_plot_params_lexer.h was 
not yet available when building the 3d-viewer or pcad2kicadpcb_plugin on clean 
tree.

This happened only on one of my linux box when compiling with 
KICAD_SKIP_BOOST=ON and making with -j 2

The attached patch fixed these problems for me.

I'm not familiar with cmake, so this may not be the best/correct way to do 
it...
>From 4f4ebe2b450ea62069e504d286eb48f7c93f27e4 Mon Sep 17 00:00:00 2001
From: Henri Valta <cg@xxxxxxxxxxxxxx>
Date: Sun, 5 Oct 2014 14:55:20 +0300
Subject: [PATCH] fix parallel build with KICAD_SKIP_BOOST=ON

---
 3d-viewer/CMakeLists.txt                   | 1 +
 pcbnew/pcad2kicadpcb_plugin/CMakeLists.txt | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/3d-viewer/CMakeLists.txt b/3d-viewer/CMakeLists.txt
index dd37cf9..f226aff 100644
--- a/3d-viewer/CMakeLists.txt
+++ b/3d-viewer/CMakeLists.txt
@@ -33,3 +33,4 @@ set(3D-VIEWER_SRCS
     )
 
 add_library(3d-viewer STATIC ${3D-VIEWER_SRCS})
+add_dependencies( 3d-viewer pcbcommon )
diff --git a/pcbnew/pcad2kicadpcb_plugin/CMakeLists.txt b/pcbnew/pcad2kicadpcb_plugin/CMakeLists.txt
index 84d7a27..90e7283 100644
--- a/pcbnew/pcad2kicadpcb_plugin/CMakeLists.txt
+++ b/pcbnew/pcad2kicadpcb_plugin/CMakeLists.txt
@@ -30,4 +30,4 @@ set( PCAD2PCBNEW_SRCS
 
 add_library( pcad2kicadpcb STATIC ${PCAD2PCBNEW_SRCS} )
 add_dependencies( pcad2kicadpcb lib-dependencies )
-
+add_dependencies( pcad2kicadpcb pcbcommon )
-- 
2.1.2


Follow ups