diff options
Diffstat (limited to 'debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch')
-rw-r--r-- | debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch b/debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch new file mode 100644 index 0000000..c8f17e8 --- /dev/null +++ b/debian/patches/0001-Don-t-force-CMAKE_BUILD_TYPE-Release.patch @@ -0,0 +1,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) + |