[poppler] cmake/modules

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Jan 26 07:11:00 PST 2014


 cmake/modules/PopplerMacros.cmake |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 834cd18e3ddfda44a11316290f7eee98cd871305
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun Jan 26 16:10:20 2014 +0100

    Use c99 for the c compiler

diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake
index 27ba7af..6cadf40 100644
--- a/cmake/modules/PopplerMacros.cmake
+++ b/cmake/modules/PopplerMacros.cmake
@@ -110,6 +110,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_CXX_FLAGS_DEBUG          "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")
   set(CMAKE_CXX_FLAGS_DEBUGFULL      "-g3 -fno-inline")
   set(CMAKE_CXX_FLAGS_PROFILE        "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
+  set(CMAKE_C_FLAGS                  "-std=c99")
   set(CMAKE_C_FLAGS_RELWITHDEBINFO   "-O2 -g")
   set(CMAKE_C_FLAGS_RELEASE          "-O2 -DNDEBUG")
   set(CMAKE_C_FLAGS_DEBUG            "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline")


More information about the poppler mailing list