From 843cb11ef80353af76e02eaf2a344ec79707c13f Mon Sep 17 00:00:00 2001
From: Jonas Kvinge <jonas@jkvinge.net>
Date: Wed, 14 Jul 2021 21:57:37 +0200
Subject: [PATCH 03/10] Move MYGPO_BUILD_TESTS option

---
 CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fa4b0cb..d27435f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,7 @@ set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/mo
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII" )
 
 option(BUILD_WITH_QT4 "Build libmygpo-qt with Qt4" OFF)
+option(MYGPO_BUILD_TESTS "Build all unit tests" ON)
 
 if( NOT BUILD_WITH_QT4 )
     if( MYGPO_BUILD_TESTS )
@@ -77,8 +78,6 @@ if (CMAKE_COMPILER_IS_GNUCXX)
     endif()
 endif(CMAKE_COMPILER_IS_GNUCXX)
 
-option(MYGPO_BUILD_TESTS "Build all unit tests" ON)
-
 if(MYGPO_BUILD_TESTS)
     INCLUDE(CTest)
     enable_testing()
-- 
2.47.0

