[poppler] CMakeLists.txt

Pino Toscano pino at kemper.freedesktop.org
Wed Nov 28 09:00:06 PST 2012


 CMakeLists.txt |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 32acd5ce28bdad7515ca59e1cba9134ba5391714
Author: Pino Toscano <pino at kde.org>
Date:   Wed Nov 28 17:59:36 2012 +0100

    cmake: Enable compiler warnings for C code
    
    Compilation of glib/demo uses a C compiler, thus compiler warnings
    should be enabled in the CFLAGS variable.
    
    followup of 5c5945d163fe406960ccc2e3a71882722b9e69d1

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d1de3c2..bb50eee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -217,9 +217,11 @@ if(_comp_warnings STREQUAL "no")
   set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_NO} ${CMAKE_CXX_FLAGS}")
 endif(_comp_warnings STREQUAL "no")
 if(_comp_warnings STREQUAL "yes")
+  set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
   set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_YES} ${CMAKE_CXX_FLAGS}")
 endif(_comp_warnings STREQUAL "yes")
 if(_comp_warnings STREQUAL "kde")
+  set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
   set(CMAKE_CXX_FLAGS "${DEFAULT_COMPILE_WARNINGS_KDE} ${CMAKE_CXX_FLAGS}")
 endif(_comp_warnings STREQUAL "kde")
 


More information about the poppler mailing list