Add -DNDEBUG for non-debug builds.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
tastytea 2020-05-19 19:17:58 +02:00
parent 2ada3b406b
commit 3909187f7a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -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."