--- CMakeLists.txt.orig	2012-04-19 18:05:29.938959913 +0300
+++ CMakeLists.txt	2012-04-19 18:05:39.398959691 +0300
@@ -191,7 +191,7 @@
 ENDIF()
 
 IF( CMAKE_BUILD_TYPE MATCHES "^[Rr]elease$" )
-    ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
+    ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT -DNDEBUG )
 ENDIF()
 
 # Always include the source and build directories in the include path
