Skip to content
Snippets Groups Projects
Commit 0ec0fe53 authored by Chloe Mimeau's avatar Chloe Mimeau
Browse files

cMake fortran update

parent acfa56fd
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ endif() ...@@ -39,7 +39,7 @@ endif()
# Any files in these dirs will be used to create Parmes exec (linked with libparmes) # Any files in these dirs will be used to create Parmes exec (linked with libparmes)
set(${EXE_NAME}_SRCDIRS main) set(${EXE_NAME}_SRCDIRS main)
# Matching expr for files to be compiled. # Matching expr for files to be compiled.
set(EXTS *.f90 *.f95) set(EXTS *.f90 *.f95 *F90)
# Matching expr for headers (install purpose) # Matching expr for headers (install purpose)
set(EXTS_HDRS *.hpp *.h) set(EXTS_HDRS *.hpp *.h)
# Note FP : we can also use cmake vars ${CMAKE_Fortran_SOURCE_FILE_EXTENSIONS} ${CMAKE_C_SOURCE_FILE_EXTENSIONS} ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS} # Note FP : we can also use cmake vars ${CMAKE_Fortran_SOURCE_FILE_EXTENSIONS} ${CMAKE_C_SOURCE_FILE_EXTENSIONS} ${CMAKE_CXX_SOURCE_FILE_EXTENSIONS}
...@@ -74,7 +74,7 @@ endif (NOT CMAKE_BUILD_TYPE) ...@@ -74,7 +74,7 @@ endif (NOT CMAKE_BUILD_TYPE)
# Set module files directory (i.e. where .mod will be created) # Set module files directory (i.e. where .mod will be created)
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/Modules) set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/Modules)
# Add compilation flags: # Add compilation flags:
append_Fortran_FLAGS("-Wall -fPIC") append_Fortran_FLAGS("-Wall -fPIC -ffree-line-length-none -DBLOCKING_SEND_PLUS -DBLOCKING_SEND")
if(USE_MPI) if(USE_MPI)
# Find MPI for C++ and fortran. # Find MPI for C++ and fortran.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment