Instead of appending to CMAKE_CFLAGS* direcly, we should use add_compile_options, add_link_options and target_compile_definitions functions from cmake. This way stuff like cross compiler options would remain.
Alternatively, it might be worth it to look into meson for building things. It seems to be more sane.
Instead of appending to CMAKE_CFLAGS* direcly, we should use add_compile_options, add_link_options and target_compile_definitions functions from cmake. This way stuff like cross compiler options would remain.
Alternatively, it might be worth it to look into meson for building things. It seems to be more sane.