File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ SET (WITH_BINDINGS TRUE CACHE BOOL "Determines whether python bindings should be
3838SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)" )
3939
4040# Compile flag. Make it posible to turn it off.
41- SET (PEDANTIC TRUE CACHE BOOL "Determines if we should compile with -Wall -Werror." )
41+ SET (PEDANTIC FALSE CACHE BOOL "Determines if we should compile with -Wall -Werror." )
4242
4343# whether unit tests should be build
4444SET (ENABLE_TESTS FALSE CACHE BOOL "Build unit tests?" )
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ SUBDIRS(config modules themes)
44ADD_DEFINITIONS (-DGRASS_BASE=\\\"${GRASS_PREFIX} \\\")
55ADD_DEFINITIONS (-DHAVE_OPENPTY=${HAVE_OPENPTY} )
66
7+ IF (PEDANTIC)
78MESSAGE ("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!" )
9+ ENDIF (PEDANTIC)
810# The warnings are caused by multiple definitions of NDEBUG in grass sources
911# I have submitted a bug to teh grass folks in the meantime we need to
1012# disable treating warnings as errors for the affected files
@@ -72,7 +74,9 @@ QT4_WRAP_CPP (GRASS_PLUGIN_MOC_SRCS ${GRASS_PLUGIN_MOC_HDRS})
7274
7375########################################################
7476# deal with warnings
77+ IF (PEDANTIC)
7578MESSAGE ("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!" )
79+ ENDIF (PEDANTIC)
7680# The warnings are caused by multiple definitions of NDEBUG in grass sources
7781# I have submitted a bug to teh grass folks in the meantime we need to
7882# disable treating warnings as errors for the affected files
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ SET(GRASS_PROVIDER_SRCS provider.cpp)
88
99SET (GRASS_LIB_SRCS qgsgrassprovider.cpp qgsgrass.cpp)
1010
11- MESSAGE ("providers/grass : -Werror removed for qgsgrassprovider.cpp for now - please get rid of any compiler warnings!" )
11+ IF (PEDANTIC)
12+ MESSAGE ("providers/grass : -Werror removed for qgsgrassprovider.cpp for now - please get rid of any compiler warnings!" )
13+ ENDIF (PEDANTIC)
1214# The warnings are caused by multiple definitions of NDEBUG in grass sources
1315# I have submitted a bug to teh grass folks in the meantime we need to
1416# disable treating warnings as errors for the affected files
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ SET (WFS_MOC_HDRS
88 qgswfsdata.h
99)
1010
11- MESSAGE ("providers/wfs : -Werror removed for qgswfsprovider.cpp for now - please get rid of any compiler warnings!" )
11+ IF (PEDANTIC)
12+ MESSAGE ("providers/wfs : -Werror removed for qgswfsprovider.cpp for now - please get rid of any compiler warnings!" )
13+ ENDIF (PEDANTIC)
1214SET_SOURCE_FILES_PROPERTIES (qgswfsprovider.cpp PROPERTIES COMPILE_FLAGS -Wno-error )
1315########################################################
1416# Build
You can’t perform that action at this time.
0 commit comments