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

Add compiler flag override macro #70

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

awnawab
Copy link
Contributor

@awnawab awnawab commented Oct 31, 2024

Currently, in order to use per source file overridable flags, we have to run a cmake script before the call to project. This has the limitation that it limits the use of ecbuild_options in the compiler flags cmake script. The current PR removes this limitation by adding a new ecbuild_override_compiler_flags macro that can be invoked after the call to project.

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.

Very nice separation of reusable functionality! Thanks @awnawab !

@wdeconinck wdeconinck force-pushed the feature/purge-compiler-flags branch from c4acdc0 to 4be34fe Compare November 8, 2024 12:37
@wdeconinck wdeconinck merged commit 7a1693b into ecmwf:develop Nov 8, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants