summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFlavio Castelli <fcastelli@suse.com>2012-01-20 14:46:11 +0100
committerFlavio Castelli <fcastelli@suse.com>2012-01-20 14:46:11 +0100
commit654bca82806529634d25d2e43a6b7fda219575da (patch)
tree7223ea3f65c349868a8062b698a55dac1569932c /CMakeLists.txt
parent50618d25585a8867a40e9d432f225074407e8869 (diff)
downloadlibsolv-654bca82806529634d25d2e43a6b7fda219575da.tar.gz
libsolv-654bca82806529634d25d2e43a6b7fda219575da.tar.bz2
libsolv-654bca82806529634d25d2e43a6b7fda219575da.zip
Change cflags for release mode
Do not produce debugging information and disable debug statements (like asserts).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a62988f..df6f90c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,7 +205,7 @@ INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_SOU
MESSAGE (STATUS "Looking for modules in ${CMAKE_MODULE_PATH}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wl,--as-needed")
-set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -g -O3")
+set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -DNDEBUG -O3")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g3 -O0")
ADD_SUBDIRECTORY (src)