summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-05-04 17:46:32 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-05-04 17:46:32 (GMT)
commit7cde00687cefa63e1623e0891e0d10517bd87b17 (patch)
treee15c8f551950485d9f5a8728e43504700c2975c0 /src/CMakeLists.txt
parent637fd7a8fdc783ef9d0de3c34c82c90228af3241 (diff)
downloadlibkolabxml-7cde00687cefa63e1623e0891e0d10517bd87b17.tar.gz
Don't set -Werrors and -Wfatal-errors for releases.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0b65a5b..2c64f34 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,9 +13,11 @@ target_link_libraries(kolabxml ${XERCES_C} ${Boost_LIBRARIES} ${UUID})
if (${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.42)
# We can't be as strict on with older versions of boost it seems (not sure if this is the exact version number where it breaks)
# Since this is only for el5 compatibility we relax the rules (resulting in a couple of warning but a working build)
- set_target_properties(kolabxml PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wfatal-errors -Wconversion")
+ #for development add here -Werror -Wfatal-errors (but don't for releases)
+ set_target_properties(kolabxml PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wconversion")
else() #then normal case
- set_target_properties(kolabxml PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Werror -Wfatal-errors -Wconversion -Wl,--no-undefined")
+ #for development add here -Werror -Wfatal-errors (but don't for releases)
+ set_target_properties(kolabxml PROPERTIES COMPILE_FLAGS "-Wall -Wextra -Wconversion -Wl,--no-undefined")
endif()
set_target_properties(kolabxml PROPERTIES VERSION ${Libkolabxml_VERSION} SOVERSION ${Libkolabxml_VERSION_MAJOR})