Add -DNDEBUG for non-debug builds.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2ada3b406b
commit
3909187f7a
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue
Block a user