aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
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)