Skip to content

Commit

Permalink
Remove line markers within line continuations added by fypp for NAG c…
Browse files Browse the repository at this point in the history
…ompiler (fixes ecmwf/atlas#193)
  • Loading branch information
wdeconinck committed Jun 10, 2024
1 parent cd10e26 commit 613d53e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/fckit_preprocess_fypp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ function( fckit_preprocess_fypp_sources output )
if( CMAKE_Fortran_COMPILER_ID MATCHES "Intel" )
list( APPEND args --line-marker-format=gfortran5 )
endif()
if( CMAKE_Fortran_COMPILER_ID MATCHES "NAG" )
# workaround for line markers in continuation lines ( see e.g. https://github.com/ecmwf/atlas/pull/193 )
list( APPEND args --line-numbering-mode=nocontlines )
endif()
# list( APPEND args -N nocontlines ) # workaround for line numbers in continuation lines
endif()

Expand Down

0 comments on commit 613d53e

Please sign in to comment.