From 0c0a820acc742940183c1abd8201612782246026 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 6 Nov 2013 10:52:33 +0100
Subject: [PATCH] Moved OGS_BUILD_GUI test up in order to have the switch
 OGS_BUILD_GUI in all parts of OGS source code.

---
 CMakeLists.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84b98c9f739..960c8c8512d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,6 +121,11 @@ IF(OGS_USE_EIGEN)
 	ENDIF()
 ENDIF()
 
+IF(OGS_BUILD_GUI)
+	ADD_DEFINITIONS(-DOGS_BUILD_GUI)
+	ADD_SUBDIRECTORY(Gui)
+ENDIF() # OGS_BUILD_GUI
+
 ADD_SUBDIRECTORY( AssemblerLib )
 ADD_SUBDIRECTORY( BaseLib )
 # TODO This is a hack but we have to make sure that Boost is built first
@@ -141,10 +146,6 @@ IF( OGS_BUILD_TESTS AND NOT IS_SUBPROJECT )
 		ADD_SUBDIRECTORY( SimpleTests/SolverTests )
 	ENDIF()
 ENDIF() # OGS_BUILD_TESTS
-IF(OGS_BUILD_GUI)
-	ADD_DEFINITIONS(-DOGS_BUILD_GUI)
-	ADD_SUBDIRECTORY(Gui)
-ENDIF() # OGS_BUILD_GUI
 IF(OGS_BUILD_UTILS AND NOT IS_SUBPROJECT)
 	ADD_SUBDIRECTORY( Utils/SimpleMeshCreation )
 	ADD_SUBDIRECTORY( Utils/FileConverter )
-- 
GitLab