← Back to team overview

kicad-developers team mailing list archive

PATCH: fix some include bugs

 

Some more header problems have been revealed by people building
kicad since we switched to using the system's installed libglm.
In many instances '#include <glm/glm.hpp>' only worked by
coincidence - that is because the compiler has /usr/include in the
search path and glm happened to be installed there. Local installs,
whether system-wide or per-user, don't work. This patch adds
the GLM include dir to the cvpcb and pcbnew CMakeLists.txt files
to ensure that the glm directory can be found even when not installed in
/usr/include.

- Cirilo
=== modified file 'cvpcb/CMakeLists.txt'
--- cvpcb/CMakeLists.txt	2015-10-29 19:43:04 +0000
+++ cvpcb/CMakeLists.txt	2015-12-10 01:03:50 +0000
@@ -16,6 +16,7 @@
     ../pcbnew/dialogs
     ../polygon
     ../common
+    ${GLEW_INCLUDE_DIR}
     ${INC_AFTER}
     )
 

=== modified file 'pcbnew/CMakeLists.txt'
--- pcbnew/CMakeLists.txt	2015-10-29 19:43:04 +0000
+++ pcbnew/CMakeLists.txt	2015-12-10 01:03:34 +0000
@@ -43,6 +43,7 @@
     ../lib_dxf
     ./import_dxf
     ../utils/idftools
+    ${GLEW_INCLUDE_DIR}
     ${INC_AFTER}
     )
 


Follow ups