Skip to content

Commit

Permalink
add ignore type checking for gnu>=10 in line with what is in src/CMak…
Browse files Browse the repository at this point in the history
…eLists.txt
  • Loading branch information
suvarchal committed Mar 29, 2023
1 parent 21470c4 commit e48b42c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesh_part/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if(${CMAKE_Fortran_COMPILER_ID} STREQUAL Intel )
# target_compile_options(${PROJECT_NAME} PRIVATE -r8 -i4 -fp-model precise -no-prec-div -no-prec-sqrt -fast-transcendentals -xHost -ip -g -traceback -check all,noarg_temp_created,bounds,uninit)
elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU )
target_compile_options(${PROJECT_NAME} PRIVATE -fdefault-real-8 -ffree-line-length-none)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 10 )
target_compile_options(${PROJECT_NAME} PRIVATE -fallow-argument-mismatch) # gfortran v10 is strict about erroneous API calls: "Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)"
endif()
endif()
target_link_libraries(${PROJECT_NAME} ${PROJECT_NAME}_C)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE Fortran)

0 comments on commit e48b42c

Please sign in to comment.