Skip to content
Permalink
Browse files
Make it possible to turn -Wall -Werror off. Set PEDANTIC to off with …
…ccmake <builddir>.

git-svn-id: http://svn.osgeo.org/qgis/trunk@6769 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Mar 5, 2007
1 parent 5561e5a commit 45c1ef6c50ef0f07b4730310378e66d8dea5ba6d
Showing with 5 additions and 1 deletion.
  1. +5 −1 CMakeLists.txt
@@ -37,6 +37,8 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
# QGIS bindings to package search path
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)")

# Compile flag. Make it posible to turn it off.
SET (PEDANTIC TRUE CACHE BOOL "Determines if we should compile with -Wall -Werror.")

#############################################################
# check if lexer and parser are not missing
@@ -114,7 +116,9 @@ FIND_PROGRAM(QT_LRELEASE_EXECUTABLE
#############################################################
# enable warnings

ADD_DEFINITIONS( -Wall -Werror )
IF (PEDANTIC)
ADD_DEFINITIONS( -Wall -Werror )
ENDIF (PEDANTIC)

IF (CMAKE_BUILD_TYPE MATCHES Debug)
ADD_DEFINITIONS(-DQGISDEBUG=1)

0 comments on commit 45c1ef6

Please sign in to comment.