From bd66ab15da4c6b2234d3e094f2c5bc6425907f5d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 16 Dec 2017 19:36:32 -0800 Subject: [PATCH] Turn on -Wall Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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)