mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-10-02 02:24:29 +08:00
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>