Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate dependencies of fypp files #50

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

awnawab
Copy link
Contributor

@awnawab awnawab commented Dec 2, 2024

A new design pattern emerging in the IFS is to place commonly used templates in header files and include these in fypp files. CMake does not of course recognise these fypp header files as dependencies, so changes to the template do not re-trigger fypp pre-processing and re-compilation.

One possible remedy is to manually mark the fypp files as depending on the header files. This PR adds the functionality to propagate this dependency through to the fypp preprocessing.

@awnawab
Copy link
Contributor Author

awnawab commented Dec 2, 2024

FYI @marsdeno

Copy link
Member

@wdeconinck wdeconinck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@wdeconinck wdeconinck merged commit 76898d5 into ecmwf:develop Dec 5, 2024
9 checks passed
wdeconinck added a commit that referenced this pull request Dec 19, 2024
* hotfix/0.13.3:
  Version 0.13.3
  FCKIT_VENV: make Python3 check optional if feature is not enabled
  FCKIT_VENV: simplify caching procedure for cross-platform builds
  FCKIT_VENV: remove redundant editable build option
  FCKIT_VENV: only install dependencies from requirements file for offline mode
  YAML_READER: switch ruamel.yaml.clib to build from source
  FCKIT_VENV: downgrade setuptools version
  FCKIT_VENV: enable offline install option
  YAML_READER: split installation into dependencies and installation from source
  YAML_READER: remove pytest dependency
  FCKIT_VENV: only enable if python < 3.12
  YAML_READER: only do pip upgrade for python3.8
  FYPP: propagate dependencies of fypp files (#50)
  add_fctest requires cmake 3.12; This disables cmake deprecation warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants