From e010192463072e2aa17b622e259ca38f2530fc79 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Tue, 23 Jun 2015 11:00:18 +0000
Subject: [PATCH] udpate with pastix ricar/develop

---
 cmake_modules/morse/AuxilaryFlags.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cmake_modules/morse/AuxilaryFlags.cmake b/cmake_modules/morse/AuxilaryFlags.cmake
index 60de26627..9b15b0f33 100644
--- a/cmake_modules/morse/AuxilaryFlags.cmake
+++ b/cmake_modules/morse/AuxilaryFlags.cmake
@@ -25,11 +25,15 @@
 # Define auxilary variables:
 #  - CMAKE_Fortran_PREPROCESS_FLAGS : force C preprocessor.
 #  - CMAKE_Fortran_FREEFORM_FLAG : Force free format.
+#  - CMAKE_Fortran
 ###
 
 
 IF(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
-  list(APPEND CMAKE_Fortran_FLAGS "-cpp -ffree-form")
+  list(APPEND CMAKE_Fortran_PREPROCESS_FLAGS "-cpp")
+  list(APPEND CMAKE_Fortran_FREEFORM_FLAG "-ffree-form")
+
 ELSEIF(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
   list(APPEND CMAKE_Fortran_PREPROCESS_FLAG "-fpp")
+  list(APPEND CMAKE_Fortran_FREEFORM_FLAG "")
 ENDIF()
-- 
GitLab