From 143320341e1b01a53e69755cbd2badc61cf4440c Mon Sep 17 00:00:00 2001 From: ckamm Date: Tue, 3 Jan 2017 13:42:25 +0100 Subject: [PATCH] Build: Enable Q_ASSERT in release mode (#5425) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a46bb885e..a721e55e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,9 @@ if( UNIX AND NOT APPLE ) endif() #### +# Enable Q_ASSERT etc. in all builds +add_definitions( -DQT_FORCE_ASSERTS ) + include(GNUInstallDirs) include(DefineInstallationPaths) include(GenerateExportHeader)