From 8937967067bb3c1b15b642c5e401348a5cf6ccc1 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 13 Oct 2022 13:08:13 +0200 Subject: [PATCH] length of macro seems to depend on PETSc location --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 192c1f84b..d0a95fa23 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,7 @@ if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") # long lines for interaction matrix 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() file(GLOB damask-sources CONFIGURE_DEPENDS *.f90 *.c) @@ -18,7 +19,7 @@ foreach(solver-source ${solver-sources}) file(READ ${solver-source} content) string(FIND "${content}" "CHKERR" found) 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() endforeach()