]> source.dussan.org Git - tigervnc.git/commitdiff
We don't want to lose the checks performed by assert() in release builds
authorPierre Ossman <ossman@cendio.se>
Wed, 19 Mar 2014 12:09:17 +0000 (12:09 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 19 Mar 2014 12:09:17 +0000 (12:09 +0000)
so make sure we remove NDEBUG. This and the ZRLE boundary fix is based
on work by Tim Waugh for Red Hat.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_3@5164 3789f03b-4d11-0410-bbf8-ca57d06f2519

CMakeLists.txt

index 468df1a545842e80ae2cbd6496ed94c87973c3ed..dd6e1548d012075cc78c426daa0558484a6aabb8 100644 (file)
@@ -63,6 +63,10 @@ endif()
 message(STATUS "VERSION = ${VERSION}, BUILD = ${BUILD}")
 add_definitions(-D__BUILD__="${BUILD}")
 
+# We want to keep our asserts even in release builds so remove NDEBUG
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -UNDEBUG")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -UNDEBUG")
+
 if(NOT DEFINED BUILD_WINVNC)
   set(BUILD_WINVNC 1)
 endif()