ecmwf / ecbuild

A CMake-based build system, consisting of a collection of CMake macros and functions that ease the managing of software build systems
https://ecbuild.readthedocs.io
Apache License 2.0
26 stars 25 forks source link

Add compiler flag override macro #70

Open awnawab opened 1 week ago

awnawab commented 1 week ago

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.