mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
generic: define NDEBUG when not building for debugging
not adding it to KDE4_DEFINITIONS on purpose (KDELibs4Config.cmake does it conditionally) Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
181e119ecc
commit
f632a2b9bb
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ set(KDE4_DEFINITIONS
|
|||
include(KDE4Defaults)
|
||||
include(KDE4Macros)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions(-DNDEBUG)
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/cmake/modules/kde4_exec.sh.in"
|
||||
"${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/kde4_exec.sh"
|
||||
|
|
Loading…
Add table
Reference in a new issue