From: Magnus Jacobsson Date: Sat, 31 Oct 2020 08:23:50 +0000 (+0100) Subject: Enable all warnings for non-MSVC CMake builds X-Git-Tag: 2.46.0~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=389185716c8d1a90f76de7d2a6aff2fca0e83235;p=graphviz Enable all warnings for non-MSVC CMake builds --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 02405dfee..16c1c0838 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -183,6 +183,9 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC) else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") + # Enable common warnings flags + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif() # ============================ Packaging information ===========================