cmake: define NDEBUG for non-debug builds

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-12-22 16:21:21 +00:00
parent 0008f38092
commit b8e0493fa8

View file

@ -519,6 +519,9 @@ if(NOT _OFFT_IS_64BIT)
set(_KDE4_PLATFORM_DEFINITIONS "${_KDE4_PLATFORM_DEFINITIONS} -D_FILE_OFFSET_BITS=64")
endif()
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
set(_KDE4_PLATFORM_DEFINITIONS "${_KDE4_PLATFORM_DEFINITIONS} -DNDEBUG")
endif()
############################################################
# compiler specific settings