length of macro seems to depend on PETSc location

This commit is contained in:
Martin Diehl 2022-10-13 13:08:13 +02:00
parent b2a600b07d
commit 8937967067
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
# long lines for interaction matrix # long lines for interaction matrix
set_source_files_properties("lattice.f90" PROPERTIES COMPILE_FLAGS "-ffree-line-length-240") set_source_files_properties("lattice.f90" PROPERTIES COMPILE_FLAGS "-ffree-line-length-240")
set_source_files_properties("parallelization.f90" PROPERTIES COMPILE_FLAGS "-ffree-line-length-none")
endif() endif()
file(GLOB damask-sources CONFIGURE_DEPENDS *.f90 *.c) file(GLOB damask-sources CONFIGURE_DEPENDS *.f90 *.c)
@ -18,7 +19,7 @@ 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)
set_source_files_properties(${solver-source} PROPERTIES COMPILE_FLAGS "-ffree-line-length-160") set_source_files_properties(${solver-source} PROPERTIES COMPILE_FLAGS "-ffree-line-length-none")
endif() endif()
endforeach() endforeach()