projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fda416f
)
Added -Wextra, and an option to disable -Werror
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 16 Jan 2013 19:04:08 +0000
(19:04 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Wed, 16 Jan 2013 19:18:58 +0000
(19:18 +0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 1e1716b7f512cacbf6ddd3a2199d80fef3ca5d72..8b7089e8d209e2e3fc75192b26de885dee3a08d1 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-27,6
+27,7
@@
project(pulseview)
#= User Options
#-------------------------------------------------------------------------------
#= User Options
#-------------------------------------------------------------------------------
+option(DISABLE_WERROR "Build without -Werror" FALSE)
option(ENABLE_TESTS "Enable unit tests" FALSE)
option(STATIC_PKGDEPS_LIBS "Statically link to (pkgconfig) libraries" FALSE)
option(ENABLE_TESTS "Enable unit tests" FALSE)
option(STATIC_PKGDEPS_LIBS "Statically link to (pkgconfig) libraries" FALSE)
@@
-138,7
+139,11
@@
include(${QT_USE_FILE})
#-------------------------------------------------------------------------------
add_definitions(${QT_DEFINITIONS})
#-------------------------------------------------------------------------------
add_definitions(${QT_DEFINITIONS})
-add_definitions(-Werror -Wall)
+add_definitions(-Wextra)
+
+if(NOT DISABLE_WERROR)
+ add_definitions(-Werror)
+endif()
#===============================================================================
#= Global Include Directories
#===============================================================================
#= Global Include Directories