Skip to content
Snippets Groups Projects
Commit f456771f authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

conditional fortran compiler flag

parent 8f7ed83a
No related branches found
No related tags found
2 merge requests!24Resolve "Add python3.x support",!15WIP: Resolve "HySoP with tasks"
......@@ -402,9 +402,11 @@ if(USE_FORTRAN)
# Set module files directory (i.e. where .mod will be created)
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/Modules)
# Add compilation flags:
#append_Fortran_FLAGS("-Wall -fPIC -ffree-line-length-none -DBLOCKING_SEND_PLUS -DBLOCKING_SEND")
append_Fortran_FLAGS("-Wall -fPIC -ffree-line-length-none -cpp -fallow-argument-mismatch")
append_Fortran_FLAGS("-Wall -fPIC -ffree-line-length-none -cpp")
append_Fortran_FLAGS("-Wno-unused-dummy-argument -Wno-integer-division -Wno-unused-value -Wno-maybe-uninitialized -Wno-unused-function")
if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU" AND CMAKE_Fortran_COMPILER_VERSION GREATER_EQUAL 10.0)
append_Fortran_FLAGS("-fallow-argument-mismatch")
endif()
if(USE_MPI)
# -I
......
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