From de7322b48c09cceef0df3710f8c0d35021e23967 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 May 2012 16:07:43 -0500 Subject: Handle NO_ASSERTS differently in CMakeLists.txt --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index b91eaa29..9eb39e3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ enable_testing() option(USE_PYTHON "Build support for the Python scripting bridge" OFF) option(USE_DOXYGEN "Build reference documentation using Doxygen" OFF) -option(NO_ASSERTS "Build without any internal consistency checks" OFF) +option(DISABLE_ASSERTS "Build without any internal consistency checks" OFF) option(BUILD_DEBUG "Build support for runtime debugging" OFF) option(BUILD_LIBRARY "Build and install Ledger as a library" ON) @@ -29,6 +29,12 @@ else() set(DEBUG_MODE 0) endif() +if(DISABLE_ASSERTS) + set(NO_ASSERTS 1) +else() + set(NO_ASSERTS 0) +endif() + if(CLANG_GCOV) set(PROFILE_LIBS profile_rt) set(CMAKE_REQUIRED_LIBRARIES ${PROFILE_LIBS}) -- cgit v1.2.3