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
3737# QGIS bindings to package search path
3838SET (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
119123IF (CMAKE_BUILD_TYPE MATCHES Debug)
120124 ADD_DEFINITIONS (-DQGISDEBUG=1)
You can’t perform that action at this time.
0 commit comments