projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added -Wextra, and an option to disable -Werror
[pulseview.git]
/
CMakeLists.txt
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