From 10b25684be77b6409d9832c8ccb451cc0e1d938c Mon Sep 17 00:00:00 2001
From: Martin Siggel <martin.siggel@dlr.de>
Date: Fri, 24 Jul 2020 18:42:04 +0200
Subject: [PATCH] Fixed fortran compilation if cflags were set before

This issue happened during deb package creation.
---
 bindings/fortran/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/fortran/CMakeLists.txt b/bindings/fortran/CMakeLists.txt
index 07a29da..4b1c503 100644
--- a/bindings/fortran/CMakeLists.txt
+++ b/bindings/fortran/CMakeLists.txt
@@ -32,7 +32,7 @@ else()
     endif()
 
     if (C_COMPILER_HAS_NO_DEPRECATED_DECL_OPTION)
-        set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-Wno-deprecated-declarations")
+        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
     endif()
 
     add_library(${TIXI_LIB_NAME}-f90 STATIC ${TIXI_F_SRC} ${TIXI_F_HDR})
-- 
2.30.0.windows.2

