summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-20 15:23:52 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 15:23:52 -0500
commit1b1c7cd4ac9efe9f44b31513a33dc68bf6ee1924 (patch)
treec36e4190510474bececa37e657f659caed5aa7ae /src
parentf579e6ddacb08ffeb124a9ec87b7faf7e9683a3c (diff)
downloadfork-ledger-1b1c7cd4ac9efe9f44b31513a33dc68bf6ee1924.tar.gz
fork-ledger-1b1c7cd4ac9efe9f44b31513a33dc68bf6ee1924.tar.bz2
fork-ledger-1b1c7cd4ac9efe9f44b31513a33dc68bf6ee1924.zip
A few more CMake-related fixes
Diffstat (limited to 'src')
-rw-r--r--src/system.hh.in2
-rw-r--r--src/utils.h5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index 1b870d55..c84ded63 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -75,7 +75,7 @@
#define HAVE_BOOST_SERIALIZATION 0
#define DEBUG_MODE @DEBUG_MODE@
-#define NDEBUG @NDEBUG@
+#define NO_ASSERTS @NO_ASSERTS@
#define DOCUMENT_MODEL 0
#define REDUCE_TO_INTEGER 0
diff --git a/src/utils.h b/src/utils.h
index 893b3d70..0a3afc4d 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -52,18 +52,15 @@
#define TIMERS_ON 1
#if DEBUG_MODE
-#define NO_ASSERTS 0
#define VERIFY_ON 1
#define TRACING_ON 1
#define DEBUG_ON 1
-#elif NDEBUG
-#define NO_ASSERTS 1
+#elif NO_ASSERTS
//#define NO_LOGGING 1
#define VERIFY_ON 0
#define TRACING_ON 0
#define DEBUG_ON 0
#else
-#define NO_ASSERTS 0
#define TRACING_ON 1 // use --trace X to enable
#define VERIFY_ON 0
#define TRACING_ON 0