omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
362 stars 35 forks source link

Cmake add_compile_options, add_link_options #415

Open katajakasa opened 2 years ago

katajakasa commented 2 years ago

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.