Skip to content

Commit

Permalink
Make it possible to turn -Wall -Werror off. Set PEDANTIC to off with …
Browse files Browse the repository at this point in the history
…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 45c1ef6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 45c1ef6

Please sign in to comment.