mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
cmake: define NDEBUG for non-debug builds
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0008f38092
commit
b8e0493fa8
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue