From 89d39e32d10614f375ef0fd44b24fa35b834f1f9 Mon Sep 17 00:00:00 2001
From: Guillaume Sylvand <guillaume.sylvand@airbus.com>
Date: Wed, 12 Oct 2016 12:09:14 +0000
Subject: [PATCH] CMakeLists.txt: Use 'set' syntax to increase
 CMAKE_Fortran_FLAGS

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03dd738bd..8645a1b65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1041,7 +1041,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
     string(REGEX MATCH ".*ifort$" _match_ifort ${CMAKE_Fortran_COMPILER})
     if(_match_ifort)
         message(STATUS "Add -nofor_main to the Fortran linker (Intel compiler)")
-        list(APPEND CMAKE_Fortran_FLAGS "-nofor_main")
+        set(CMAKE_Fortran_FLAGS  "${CMAKE_Fortran_FLAGS} -nofor_main")
     endif(_match_ifort)
 
     # Testing executables
-- 
GitLab