summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0f562e4..fc9d79a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,6 +10,11 @@ endif()
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "The type of build.")
option(BUILD_SHARED_LIBS "Build shared libraries." YES)
+# Not every non-debug build type adds -DNDEBUG.
+if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
+ add_compile_definitions(NDEBUG)
+endif()
+
project(mastodonpp
VERSION 0.5.4
DESCRIPTION "C++ wrapper for the Mastodon and Pleroma APIs."