]> sigrok.org Git - pulseview.git/commitdiff
Added -Wextra, and an option to disable -Werror
authorJoel Holdsworth <redacted>
Wed, 16 Jan 2013 19:04:08 +0000 (19:04 +0000)
committerJoel Holdsworth <redacted>
Wed, 16 Jan 2013 19:18:58 +0000 (19:18 +0000)
CMakeLists.txt

index 1e1716b7f512cacbf6ddd3a2199d80fef3ca5d72..8b7089e8d209e2e3fc75192b26de885dee3a08d1 100644 (file)
@@ -27,6 +27,7 @@ project(pulseview)
 #= 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)
 
@@ -138,7 +139,11 @@ include(${QT_USE_FILE})
 #-------------------------------------------------------------------------------
 
 add_definitions(${QT_DEFINITIONS})
-add_definitions(-Werror -Wall)
+add_definitions(-Wextra)
+
+if(NOT DISABLE_WERROR)
+       add_definitions(-Werror)
+endif()
 
 #===============================================================================
 #= Global Include Directories