From a0c2dcdaeb206fe3000cd301a297e845d1882cfb Mon Sep 17 00:00:00 2001 From: Sherry Li Date: Mon, 13 Dec 2021 08:46:16 -0800 Subject: [PATCH] CMakeLists.txt update: Set default fortran format to free and preprocess all files --- .gitignore | 1 + CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 39be29c9..f28bb4f5 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ make.inc build/* # not to commit any changes to the following file +SRC/superlu_FortranCInterface.h FORTRAN/superlu_dist_config.fh diff --git a/CMakeLists.txt b/CMakeLists.txt index 01995fec..085d8e2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -408,6 +408,12 @@ if (XSDK_ENABLE_Fortran) MACRO_NAMESPACE "FC_") FortranCInterface_VERIFY(CXX) SET(MPI_Fortran_LINK_FLAGS "${CMAKE_EXE_LINKER_FLAGS}") + + #--------------------------------------------------------------------- + # Set default fortran format to free and preprocess all files + #--------------------------------------------------------------------- + set(CMAKE_Fortran_FORMAT FREE) + set(CMAKE_Fortran_PREPROCESS ON) endif() ######################################################################