Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA authored Mar 5, 2024
1 parent 8d409fa commit c1becce
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ endif()
if(F90_AUTOFORMAT)
find_program(FPRETTIFY_EXE fprettify REQUIRED)
execute_process(
COMMAND ${FPRETTIFY_EXE} --version
OUTPUT_VARIABLE FPRETTIFY_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
COMMAND ${FPRETTIFY_EXE} --version
OUTPUT_VARIABLE FPRETTIFY_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if(NOT ${FPRETTIFY_VERSION} MATCHES "-emc$")
message(FATAL_ERROR "The EMC-modified version of fprettify is required")
endif()
message(STATUS "Creating 'fprettify' target to directly update src/*.F90")
add_custom_target(
fprettify
COMMAND ${FPRETTIFY_EXE} --case 1 1 1 1 1 --indent 4
--whitespace 1 --enable-replacements --bkup_suffix .bkp
"${CMAKE_SOURCE_DIR}/src/*.F90"
fprettify
COMMAND ${FPRETTIFY_EXE} --case 1 1 1 1 1 --indent 4
--whitespace 1 --enable-replacements --bkup_suffix .bkp
"${CMAKE_SOURCE_DIR}/src/*.F90"
)
endif()

0 comments on commit c1becce

Please sign in to comment.