From 4b3a82592cd7a4bd2b18be1a4e020e05786a39a6 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 4 Nov 2014 18:50:07 +0100 Subject: [PATCH] Define QT_NO_DEBUG for build type None. Debian sets the the build type to None for package builds. Make sure we don't enable asserts there. Closes #237 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 280fb7766..3532c46f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,6 +165,9 @@ endif() find_package(Qt4 4.6.0 REQUIRED ${QT_REQUIRED_MODULES}) include(${QT_USE_FILE}) +# Debian sets the the build type to None for package builds. +# Make sure we don't enable asserts there. +set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_NONE QT_NO_DEBUG) find_package(Gcrypt REQUIRED) if(NOT (${GCRYPT_VERSION_STRING} VERSION_LESS "1.6.0"))