only valid/needed for GNU

This commit is contained in:
Martin Diehl 2022-12-17 16:13:35 +01:00
parent eff2789bc2
commit 2662bec55f
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ endif()
foreach(solver-source ${solver-sources}) foreach(solver-source ${solver-sources})
file(READ ${solver-source} content) file(READ ${solver-source} content)
string(FIND "${content}" "CHKERR" found) string(FIND "${content}" "CHKERR" found)
if(NOT ${found} EQUAL -1) if((NOT ${found} EQUAL -1) AND (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU"))
set_source_files_properties(${solver-source} PROPERTIES COMPILE_FLAGS "-ffree-line-length-none") set_source_files_properties(${solver-source} PROPERTIES COMPILE_FLAGS "-ffree-line-length-none")
endif() endif()
endforeach() endforeach()