length of macro seems to depend on PETSc location
This commit is contained in:
parent
b2a600b07d
commit
8937967067
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue