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
38
38
SET (BINDINGS_GLOBAL_INSTALL FALSE CACHE BOOL "Install bindings to global python directory? (might need root)" )
39
39
40
40
# 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." )
42
42
43
43
# whether unit tests should be build
44
44
SET (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)
4
4
ADD_DEFINITIONS (-DGRASS_BASE=\\\" ${GRASS_PREFIX} \\\" )
5
5
ADD_DEFINITIONS (-DHAVE_OPENPTY=${HAVE_OPENPTY} )
6
6
7
+ IF (PEDANTIC )
7
8
MESSAGE ("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!" )
9
+ ENDIF (PEDANTIC )
8
10
# The warnings are caused by multiple definitions of NDEBUG in grass sources
9
11
# I have submitted a bug to teh grass folks in the meantime we need to
10
12
# disable treating warnings as errors for the affected files
@@ -72,7 +74,9 @@ QT4_WRAP_CPP (GRASS_PLUGIN_MOC_SRCS ${GRASS_PLUGIN_MOC_HDRS})
72
74
73
75
########################################################
74
76
# deal with warnings
77
+ IF (PEDANTIC )
75
78
MESSAGE ("providers/grass : -Werror removed for qgsgrassplugin.cpp for now - please get rid of any compiler warnings!" )
79
+ ENDIF (PEDANTIC )
76
80
# The warnings are caused by multiple definitions of NDEBUG in grass sources
77
81
# I have submitted a bug to teh grass folks in the meantime we need to
78
82
# 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)
8
8
9
9
SET (GRASS_LIB_SRCS qgsgrassprovider.cpp qgsgrass.cpp )
10
10
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 )
12
14
# The warnings are caused by multiple definitions of NDEBUG in grass sources
13
15
# I have submitted a bug to teh grass folks in the meantime we need to
14
16
# 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
8
8
qgswfsdata.h
9
9
)
10
10
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 )
12
14
SET_SOURCE_FILES_PROPERTIES (qgswfsprovider.cpp PROPERTIES COMPILE_FLAGS -Wno-error )
13
15
########################################################
14
16
# Build
You can’t perform that action at this time.
0 commit comments