only valid/needed for GNU

This commit is contained in:
Martin Diehl 2022-12-17 16:13:35 +01:00
parent 548857c6a6
commit 3a643d04c4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ endif()
foreach(solver-source ${solver-sources})
file(READ ${solver-source} content)
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")
endif()
endforeach()