← Back to team overview

kicad-developers team mailing list archive

[PATCH] Add system to OCE includes, Change order of local includes for kicad2step

 

---
 plugins/3d/oce/CMakeLists.txt   | 2 +-
 utils/kicad2step/CMakeLists.txt | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/plugins/3d/oce/CMakeLists.txt b/plugins/3d/oce/CMakeLists.txt
index 067dc17..6c61631 100644
--- a/plugins/3d/oce/CMakeLists.txt
+++ b/plugins/3d/oce/CMakeLists.txt
@@ -12,7 +12,7 @@
 # export WXTRACE="PLUGIN_OCE"
 #
 
-include_directories(
+include_directories( SYSTEM
     ${OCE_INCLUDE_DIRS}
 )
 
diff --git a/utils/kicad2step/CMakeLists.txt b/utils/kicad2step/CMakeLists.txt
index 005a1db..bdfff33 100644
--- a/utils/kicad2step/CMakeLists.txt
+++ b/utils/kicad2step/CMakeLists.txt
@@ -1,7 +1,10 @@
-include_directories(
+include_directories( BEFORE
         pcb
         ${CMAKE_CURRENT_SOURCE_DIR}
-        ${OCE_INCLUDE_DIRS}
+)
+
+include_directories( SYSTEM 
+    ${OCE_INCLUDE_DIRS}
 )
 
 add_executable( kicad2step

Follow ups