summaryrefslogtreecommitdiff
path: root/debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch
blob: c8f17e879e731c82273977e4493b9f430f9a12a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Gard Spreemann <gspreemann@gmail.com>
Date: Wed, 30 Jan 2019 13:22:13 +0100
Subject: Don't force CMAKE_BUILD_TYPE=Release.

---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d2c34e..7417d30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 2.8)
 
 project("Phat")
 
-set(CMAKE_BUILD_TYPE "Release")
+if (NOT CMAKE_BUILD_TYPE)
+  set(CMAKE_BUILD_TYPE "Release")
+endif()
 
 INCLUDE(CheckCXXSourceCompiles)