From 807bc65375a33acd498e35734cd876c516fa36f0 Mon Sep 17 00:00:00 2001
From: Sebastien Blaise <sebastien.blaise@uclouvain.be>
Date: Thu, 22 Oct 2015 09:15:36 +0000
Subject: [PATCH] gmsh meshoptimize - should compile now

---
 contrib/MeshOptimizer/CMakeLists.txt  | 5 ++---
 contrib/MeshOptimizer/MeshOptCommon.h | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/contrib/MeshOptimizer/CMakeLists.txt b/contrib/MeshOptimizer/CMakeLists.txt
index b30ab35afa..a5342ce19c 100644
--- a/contrib/MeshOptimizer/CMakeLists.txt
+++ b/contrib/MeshOptimizer/CMakeLists.txt
@@ -14,7 +14,8 @@ set(SRC
   MeshOptVertexCoord.cpp
 )
 
-
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MeshOptimizerConfig.h.in
+               ${CMAKE_CURRENT_BINARY_DIR}/MeshOptimizerConfig.h)
 
 opt(NCURSES "Enable ncurses console tools" OFF)
 
@@ -34,5 +35,3 @@ mark_as_advanced(NCURSES_INC NCURSES_LIB)
 file(GLOB_RECURSE HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.hpp)
 append_gmsh_src(contrib/MeshOptimizer "${SRC};${HDR}")
 
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/MeshOptimizerConfig.h.in
-               ${CMAKE_CURRENT_BINARY_DIR}/MeshOptimizerConfig.h)
diff --git a/contrib/MeshOptimizer/MeshOptCommon.h b/contrib/MeshOptimizer/MeshOptCommon.h
index 948f1bd897..232fd359c2 100644
--- a/contrib/MeshOptimizer/MeshOptCommon.h
+++ b/contrib/MeshOptimizer/MeshOptCommon.h
@@ -33,7 +33,7 @@
 
 #include <vector>
 #include "GmshMessage.h"
-//#include "MeshOptimizerConfig.h"
+#include "MeshOptimizerConfig.h"
 
 class MElement;
 class GEntity;
-- 
GitLab