Skip to content

Commit

Permalink
ecWAM can now pickup the FYPP cloned by field_api
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Aug 31, 2023
1 parent 5476960 commit f438786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmake/ecwam_find_python_mods.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ macro( ecwam_find_python_mods )
set(PYYAML_FOUND OFF)

# Look for fypp pre-processor
find_program( FYPP_PATH fypp QUIET)
if( FYPP_PATH )
find_program( FYPP fypp HINTS ${fypp_ROOT} )
if( FYPP )
ecbuild_info( "${ECWAM_PROJECT_NAME} FOUND fypp" )
set(FYPP_FOUND ON)
else()
ecbuild_info( "${ECWAM_PROJECT_NAME} FAILED to find optional package fypp" )
endif()
# We do a QUIET ecbuild_find_package to update the ecbuild project summary
ecbuild_find_package( fypp QUIET)
ecbuild_find_package( fypp QUIET )

# Look for python interpreter and pyyaml package
ecbuild_find_python()
Expand Down
2 changes: 1 addition & 1 deletion src/ecwam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ if( HAVE_GEN_DERIV_TYPES )
list( APPEND ecwam_srcs ${CMAKE_CURRENT_BINARY_DIR}/yowfield_mod.F90)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/yowfield_mod.F90
COMMAND fypp -m io -m yaml -m os -DMIXED_PRECISION=${MIXED_PRECISION} ${CMAKE_CURRENT_SOURCE_DIR}/yowfield_mod.fypp > yowfield_mod.F90
COMMAND ${FYPP} -m io -m yaml -m os -DMIXED_PRECISION=${MIXED_PRECISION} ${CMAKE_CURRENT_SOURCE_DIR}/yowfield_mod.fypp > yowfield_mod.F90
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/yowfield_mod.fypp
VERBATIM)
else()
Expand Down

0 comments on commit f438786

Please sign in to comment.