Files
Arnaud Pouliquen bce63e0133 cmake: Do not propagate compilation options to the main project
When libmetal is included in the main project using
add_subdirectory(libmetal), using set_property(GLOBAL ...)
propagates properties to the main project. This can cause
build errors if warnings are treated as errors.

Remove set_property(GLOBAL ...) calls from libmetal’s CMakeLists.
Use only target_compile_options and target properties on
libmetal’s own targets. The main project should determine
its own compilation options.

fix commit d077e286a4 ("cmake: set PROJECT_EC_FLAGS to be GLOBAL property")

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2026-04-10 11:14:00 +02:00
..
2024-04-11 11:11:34 +02:00