From 823a7d856dc04bb0700cf72410b8e08606ea6637 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 5 Oct 2012 06:19:06 +0000
Subject: [PATCH]

---
 CMakeLists.txt | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index afe0f732ee..de8f75b470 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -901,14 +901,13 @@ endif(ENABLE_ACIS)
 
 if(ENABLE_ONELAB)
   set_config_option(HAVE_ONELAB "OneLab")
+  if(ENABLE_ONELAB_METAMODEL)
+    add_subdirectory(contrib/onelab)
+    include_directories(contrib/onelab)
+    set_config_option(HAVE_ONELAB_METAMODEL "OneLabMetamodel")
+  endif(ENABLE_ONELAB_METAMODEL)
 endif(ENABLE_ONELAB)
 
-if(ENABLE_ONELAB_METAMODEL)
-  add_subdirectory(contrib/onelab)
-  include_directories(contrib/onelab)
-  set_config_option(HAVE_ONELAB_METAMODEL "OneLabMetamodel")
-endif(ENABLE_ONELAB_METAMODEL)
-
 check_function_exists(vsnprintf HAVE_VSNPRINTF)
 if(NOT HAVE_VSNPRINTF)
   set_config_option(HAVE_NO_VSNPRINTF "NoVsnprintf")
-- 
GitLab