diff options
author | Flavio Castelli <fcastelli@suse.com> | 2012-01-20 14:46:11 +0100 |
---|---|---|
committer | Flavio Castelli <fcastelli@suse.com> | 2012-01-20 14:46:11 +0100 |
commit | 654bca82806529634d25d2e43a6b7fda219575da (patch) | |
tree | 7223ea3f65c349868a8062b698a55dac1569932c /CMakeLists.txt | |
parent | 50618d25585a8867a40e9d432f225074407e8869 (diff) | |
download | libsolv-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.txt | 2 |
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) |