Skip to content

Commit fd382bd

Browse files
author
homann
committedMar 5, 2007
Make it possible to turn -Wall -Werror off. Set PEDANTIC to off with ccmake <builddir>.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6769 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent cf66fd4 commit fd382bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
3737
# QGIS bindings to package search path
3838
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)")
3939

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

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

117-
ADD_DEFINITIONS( -Wall -Werror )
119+
IF (PEDANTIC)
120+
ADD_DEFINITIONS( -Wall -Werror )
121+
ENDIF (PEDANTIC)
118122

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

0 commit comments

Comments
 (0)