diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-03-19 12:09:17 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-03-19 12:09:17 +0000 |
commit | 88ab55af4ec0cdb8abb33233b8a1283f3ae31fab (patch) | |
tree | 6d89ea33e767aff189bb08dab7b0aa4218471440 | |
parent | 242b01eec4ba0f288f83c0e053561f97a4821db0 (diff) | |
download | tigervnc-88ab55af4ec0cdb8abb33233b8a1283f3ae31fab.tar.gz tigervnc-88ab55af4ec0cdb8abb33233b8a1283f3ae31fab.zip |
We don't want to lose the checks performed by assert() in release builds
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
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 468df1a5..dd6e1548 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |