From d2306709cb858f09589ba0d355f0c00ae516d7b9 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 27 Sep 2012 21:06:26 +0000
Subject: [PATCH] fix compile

---
 wrappers/gmshpy/gmshMesh.i | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/wrappers/gmshpy/gmshMesh.i b/wrappers/gmshpy/gmshMesh.i
index 7cb95213c9..cbb5872cdf 100644
--- a/wrappers/gmshpy/gmshMesh.i
+++ b/wrappers/gmshpy/gmshMesh.i
@@ -9,7 +9,9 @@
   #include "Generator.h"
   #include "DivideAndConquer.h"
   #include "highOrderTools.h"
+#if defined(HAVE_BFGS)
   #include "meshGFaceLloyd.h"
+#endif
   #include "meshGFaceOptimize.h"
   #include "meshPartitionOptions.h"
 #if defined(HAVE_OPTHOM)
@@ -20,7 +22,9 @@
 #endif
   #include "Field.h"
   #include "meshMetric.h"
+#if defined(HAVE_ANN)
   #include "CenterlineField.h"
+#endif
   #include "simple3D.h"
   #include "Voronoi3D.h"
   #include "Levy3D.h"
@@ -42,7 +46,9 @@ namespace std {
 %include "Generator.h"
 %include "DivideAndConquer.h"
 %include "highOrderTools.h"
+#if defined(HAVE_BFGS)
 %include "meshGFaceLloyd.h"
+#endif
 %include "meshGFaceOptimize.h"
 %include "meshPartitionOptions.h"
 #if defined(HAVE_OPTHOM)
@@ -53,7 +59,9 @@ namespace std {
 #endif
 %include "Field.h"
 %include "meshMetric.h"
+#if defined(HAVE_ANN)
 %include "CenterlineField.h"
+#endif
 %include "simple3D.h"
 %include "Voronoi3D.h"
 %include "Levy3D.h"
-- 
GitLab