aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-16 19:36:32 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-17 09:08:21 -0800
commitbd66ab15da4c6b2234d3e094f2c5bc6425907f5d (patch)
treeb04fce6d57d431dfb8d224f757eac4abd98c3a43
parentb59778abd8717ada5b592e8afc08dace0b7538a1 (diff)
downloadsubsurface-bd66ab15da4c6b2234d3e094f2c5bc6425907f5d.tar.gz
Turn on -Wall
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5827304c1..e8d9b9e87 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,6 +96,10 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# using Visual Studio C++
endif()
+# every compiler understands -Wall
+set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
+
# pkgconfig for required libraries
find_package(PkgConfig)
include(cmake/Modules/pkgconfig_helper.cmake)