[calligra] /: Enable -Werror

Boudewijn Rempt boud at valdyas.org
Wed Nov 27 16:47:15 UTC 2013


Git commit 910b2a0c00347210bc9a0f859657b8a138c3867e by Boudewijn Rempt.
Committed on 27/11/2013 at 15:56.
Pushed by rempt into branch 'master'.

Enable -Werror

All warnings except for deprecations and #warning now result in
an error, except in Kexi and certain 3rd party code we include.

CCMAIL:kimageshop at kde.org
CCMAIL:calligrad-devel at kde.org

M  +9    -0    CMakeLists.txt

http://commits.kde.org/calligra/910b2a0c00347210bc9a0f859657b8a138c3867e

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e17960e..6bf574a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,15 @@ if(${CMAKE_VERSION} VERSION_GREATER 2.8.3)
     cmake_policy(SET CMP0017 NEW)
 endif()
 
+if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
+    add_definitions(-Werror)
+    add_definitions(-Wno-error=deprecated-declarations)
+    add_definitions(-Wdeprecated-declarations)
+    add_definitions(-Wno-error=cpp)
+    add_definitions(-Wcpp)
+endif (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
+
+
  ############
 #############
 ## Options ##


More information about the kimageshop mailing list