@@ -253,48 +253,48 @@ endif()
253253#
254254# * Locate all source files for <target> of the type
255255#
256- # src/[<target>,common]/[.,include]/*.[f90,fpp ].
256+ # src/[<target>,common]/[.,include]/*.[f90,fypp ].
257257#
258- # * For each .fpp file found with filepath <dirpath>/<filename>.fpp , using a
258+ # * For each .fypp file found with filepath <dirpath>/<filename>.fypp , using a
259259# custom command, instruct CMake how to generate a file with path
260260#
261261# src/<target>/fypp/<filename>.f90
262262#
263- # by running Fypp on <dirpath>/<filename>.fpp . It is important to understand
263+ # by running Fypp on <dirpath>/<filename>.fypp . It is important to understand
264264# that this does not actually run the pre-processor. Rather, it instructs
265265# CMake what to do when it finds a src/<target>/fypp/<filename>.f90 path
266266# in the source list for a target. Thus, an association is made from an .f90
267- # file to its corresponding .fpp file (if applicable) even though the
268- # generation is of the form .fpp -> .f90.
267+ # file to its corresponding .fypp file (if applicable) even though the
268+ # generation is of the form .fypp -> .f90.
269269#
270- # This design has one limitation: If an .fpp file depends on another, for
270+ # This design has one limitation: If an .fypp file depends on another, for
271271# example if it '#:include's it and uses a macro defined in it, then the
272- # dependency will not be tracked. A modification to the .fpp file it depends
273- # on will not trigger a re-run of Fypp on the .fpp file that depends on it.
272+ # dependency will not be tracked. A modification to the .fypp file it depends
273+ # on will not trigger a re-run of Fypp on the .fypp file that depends on it.
274274# As a compromise, both in speed and complexity, all .f90 files generated
275- # from .fpp files are re-generated not only when their corresponding .fpp
275+ # from .fypp files are re-generated not only when their corresponding .fypp
276276# file is modified, but also when any file with filepath of the form
277277#
278- # src/[<target>,common]/include/*.fpp
278+ # src/[<target>,common]/include/*.fypp
279279#
280- # is modified. This is a reasonable compromise as modifications to .fpp files
280+ # is modified. This is a reasonable compromise as modifications to .fypp files
281281# in the include directories will be rare - by design. Other approaches would
282- # have required a more complex CMakeLists.txt file (perhaps parsing the .fpp
282+ # have required a more complex CMakeLists.txt file (perhaps parsing the .fypp
283283# files to determine their dependencies) or the endurment of longer
284- # compilation times (by way of re-running Fypp on all .fpp files every time
284+ # compilation times (by way of re-running Fypp on all .fypp files every time
285285# one of them is modified).
286286#
287- # .fpp files in src/common are treated as if they were in src/<target> (not
287+ # .fypp files in src/common are treated as if they were in src/<target> (not
288288# pre-processed to src/common/fypp/) so as not to clash with other targets'
289- # .fpp files (this has caused problems in the past).
289+ # .fypp files (this has caused problems in the past).
290290#
291291# * Export, in the variable <target>_SRCs, a list of all source files (.f90)
292- # that would compile to produce <target>. If <target> includes .fpp files,
292+ # that would compile to produce <target>. If <target> includes .fypp files,
293293# then the list will include the paths to the corresponding .f90 files that
294- # Fypp would generate from the .fpp files.
294+ # Fypp would generate from the .fypp files.
295295#
296296# This design allows us to be flexible in our use of Fypp as we don't have to
297- # worry about running the pre-processor on .fpp files when we create executables
297+ # worry about running the pre-processor on .fypp files when we create executables
298298# and generate documentation. Instead, we can simply include the list of .f90
299299# files that will eventually be used to compile <target>.
300300
@@ -316,31 +316,31 @@ macro(HANDLE_SOURCES target useCommon)
316316 endif ()
317317
318318 # Gather:
319- # * src/[<target>,(common)]/*.fpp ]
320- # * (if any) <build>/modules/<target>/*.fpp
321- file (GLOB ${target} _FPPs CONFIGURE_DEPENDS "${${target} _DIR}/*.fpp "
322- "${CMAKE_BINARY_DIR} /modules/${target} /*.fpp " )
319+ # * src/[<target>,(common)]/*.fypp ]
320+ # * (if any) <build>/modules/<target>/*.fypp
321+ file (GLOB ${target} _FYPPs CONFIGURE_DEPENDS "${${target} _DIR}/*.fypp "
322+ "${CMAKE_BINARY_DIR} /modules/${target} /*.fypp " )
323323 if (${useCommon} )
324- file (GLOB common_FPPs CONFIGURE_DEPENDS "${common_DIR} /*.fpp " )
325- list (APPEND ${target} _FPPs ${common_FPPs } )
324+ file (GLOB common_FYPPs CONFIGURE_DEPENDS "${common_DIR} /*.fypp " )
325+ list (APPEND ${target} _FYPPs ${common_FYPPs } )
326326 endif ()
327327
328328 # Gather:
329- # * src/[<target>,common]/include/*.fpp
330- # * (if any) <build>/include/<target>/*.fpp
331- file (GLOB ${target} _incs CONFIGURE_DEPENDS "${${target} _DIR}/include/*.fpp "
332- "${CMAKE_BINARY_DIR} /include/${target} /*.fpp " )
329+ # * src/[<target>,common]/include/*.fypp
330+ # * (if any) <build>/include/<target>/*.fypp
331+ file (GLOB ${target} _incs CONFIGURE_DEPENDS "${${target} _DIR}/include/*.fypp "
332+ "${CMAKE_BINARY_DIR} /include/${target} /*.fypp " )
333333
334334 if (${useCommon} )
335- file (GLOB common_incs CONFIGURE_DEPENDS "${common_DIR} /include/*.fpp " )
335+ file (GLOB common_incs CONFIGURE_DEPENDS "${common_DIR} /include/*.fypp " )
336336 list (APPEND ${target} _incs ${common_incs} )
337337 endif ()
338338
339- # /path/to/*.fpp (used by <target>) -> <build>/fypp/<target>/*.f90
339+ # /path/to/*.fypp (used by <target>) -> <build>/fypp/<target>/*.f90
340340 file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR} /fypp/${target} " )
341- foreach (fpp ${${target} _FPPs })
342- cmake_path(GET fpp FILENAME fpp_filename )
343- set (f90 "${CMAKE_BINARY_DIR} /fypp/${target} /${fpp_filename } .f90" )
341+ foreach (fypp ${${target} _FYPPs })
342+ cmake_path(GET fypp FILENAME fypp_filename )
343+ set (f90 "${CMAKE_BINARY_DIR} /fypp/${target} /${fypp_filename } .f90" )
344344
345345 add_custom_command (
346346 OUTPUT ${f90}
@@ -356,9 +356,9 @@ macro(HANDLE_SOURCES target useCommon)
356356 -D chemistry=False
357357 --line-numbering
358358 --no -folding
359- "${fpp } " "${f90} "
360- DEPENDS "${fpp } ;${${target} _incs}"
361- COMMENT "Preprocessing (Fypp) ${fpp_filename } "
359+ "${fypp } " "${f90} "
360+ DEPENDS "${fypp } ;${${target} _incs}"
361+ COMMENT "Preprocessing (Fypp) ${fypp_filename } "
362362 VERBATIM
363363 )
364364
0 commit comments