diff options
author | Chris Robinson <[email protected]> | 2007-11-30 01:16:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-11-30 01:16:57 -0800 |
commit | 3bedb2b4e95e22353ccb0e976d5c320cd7572f10 (patch) | |
tree | 146d0c855191b13a37f28b6d3ed6ce82a4fb5de5 /CMakeLists.txt | |
parent | ab34e7c613aad78e193ba6f8a4d5631f1ba6a613 (diff) |
Add _DEBUG/NDEBUG defines when DEBUG/NODEBUG options are used, respectively
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fd883d80..c6caaa77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,6 +83,12 @@ ELSE() ENDIF() ENDIF() +IF(DEBUG) + ADD_DEFINITIONS(-D_DEBUG) +ELSEIF(NODEBUG) + ADD_DEFINITIONS(-DNDEBUG) +ENDIF() + CHECK_LIBRARY_EXISTS(m sqrtf "" HAVE_SQRTF) CHECK_LIBRARY_EXISTS("" strtof "" HAVE_STRTOF) |