--
Uwe Bonnes [email protected]
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 0a05f10df54bf444a08f4834e3154c2c20984d7f Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <[email protected]>
Date: Mon, 20 Jan 2014 14:34:40 +0100
Subject: cmake: Allow to choose build type on command line.
---
CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab899f2..9a6a2f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,9 +3,12 @@ list(APPEND CMAKE_MODULE_PATH
${CMAKE_SOURCE_DIR}/cmake/Modules)
project(sdrangelove)
-set(CMAKE_BUILD_TYPE "Release")
+#set(CMAKE_BUILD_TYPE "Release")
#set(CMAKE_BUILD_TYPE "ReleaseWithDebugInfo")
#set(CMAKE_BUILD_TYPE "Debug")
+if (NOT DEFINED CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+endif()
set(QT_USE_QTOPENGL TRUE)
set(CMAKE_AUTOMOC ON)
--
1.8.4