Skip to content

Commit

Permalink
CMakeLists.txt update: Set default fortran format to free and preproc…
Browse files Browse the repository at this point in the history
…ess all files
  • Loading branch information
xiaoyeli committed Dec 13, 2021
1 parent cc9fa8f commit a0c2dcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

######################################################################
Expand Down

0 comments on commit a0c2dcd

Please sign in to comment.