:: [Frei0r] Fwd: [PATCH] cmake: fix CF…
Top Pagina
Delete this message
Reply to this message
Auteur: thomasg
Datum:  
Aan: frei0r
Oude Onderwerpen: [Frei0r] [PATCH] cmake: fix CFLAGS for filters using std=c99
Onderwerp: [Frei0r] Fwd: [PATCH] cmake: fix CFLAGS for filters using std=c99
I sent this in May already, apparently it never made it through the
moderation queue, so another try...
Patch inlined + attached.


---------- Forwarded message ----------
From: Thomas Gstädtner <thomas@???>
Date: Wed, May 30, 2012 at 3:15 PM
Subject: [PATCH] cmake: fix CFLAGS for filters using std=c99
To: frei0r@???
Cc: Thomas Gstädtner <thomas@???>


This passes all CFLAGS to the buildsystem, not only -std=c99.

Signed-off-by: Thomas Gstädtner <thomas@???>
---
 src/filter/curves/CMakeLists.txt              |    2 +-
 src/filter/levels/CMakeLists.txt              |    2 +-
 src/filter/three_point_balance/CMakeLists.txt |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/src/filter/curves/CMakeLists.txt b/src/filter/curves/CMakeLists.txt
index 6a71f7e..51183bf 100644
--- a/src/filter/curves/CMakeLists.txt
+++ b/src/filter/curves/CMakeLists.txt
@@ -1,6 +1,6 @@
 # Set C99 flag for gcc
 if (CMAKE_COMPILER_IS_GNUCC)
-    set(CMAKE_C_FLAGS "-std=c99")
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
 endif (CMAKE_COMPILER_IS_GNUCC)


 set (SOURCES curves.c)
diff --git a/src/filter/levels/CMakeLists.txt b/src/filter/levels/CMakeLists.txt
index ef66de8..7b93c15 100644
--- a/src/filter/levels/CMakeLists.txt
+++ b/src/filter/levels/CMakeLists.txt
@@ -1,6 +1,6 @@
 # Set C99 flag for gcc
 if (CMAKE_COMPILER_IS_GNUCC)
-    set(CMAKE_C_FLAGS "-std=c99")
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
 endif (CMAKE_COMPILER_IS_GNUCC)


 set (SOURCES levels.c)
diff --git a/src/filter/three_point_balance/CMakeLists.txt
b/src/filter/three_point_balance/CMakeLists.txt
index 7a3b35f..bacf2ef 100644
--- a/src/filter/three_point_balance/CMakeLists.txt
+++ b/src/filter/three_point_balance/CMakeLists.txt
@@ -1,6 +1,6 @@
 # Set C99 flag for gcc
 if (CMAKE_COMPILER_IS_GNUCC)
-    set(CMAKE_C_FLAGS "-std=c99")
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
 endif (CMAKE_COMPILER_IS_GNUCC)


set (SOURCES three_point_balance.c)
--
1.7.8.6