File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
37
37
# QGIS bindings to package search path
38
38
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)" )
39
39
40
+ # Compile flag. Make it posible to turn it off.
41
+ SET (PEDANTIC TRUE CACHE BOOL "Determines if we should compile with -Wall -Werror." )
40
42
41
43
#############################################################
42
44
# check if lexer and parser are not missing
@@ -114,7 +116,9 @@ FIND_PROGRAM(QT_LRELEASE_EXECUTABLE
114
116
#############################################################
115
117
# enable warnings
116
118
117
- ADD_DEFINITIONS ( -Wall -Werror )
119
+ IF (PEDANTIC)
120
+ ADD_DEFINITIONS ( -Wall -Werror )
121
+ ENDIF (PEDANTIC)
118
122
119
123
IF (CMAKE_BUILD_TYPE MATCHES Debug)
120
124
ADD_DEFINITIONS (-DQGISDEBUG=1)
You can’t perform that action at this time.
0 commit comments