This change removes the compile_args argument from the sdl2 dependency to stop propagating SDL's internal compilation arguments to dependent projects to avoid GCC compiler warnings like the following when building a C++ project against SDL:
cc1plus: warning: command-line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
SDL's own sdl2-config --cflags utility for applying the recommended compiler arguments to dependent projects does not include the internal compiler arguments used to build the SDL library so this change aligns the meson wrap more closely to using SDL's native build systems or standard Linux distribution packages.
This change removes the compile_args argument from the sdl2 dependency to stop propagating SDL's internal compilation arguments to dependent projects to avoid GCC compiler warnings like the following when building a C++ project against SDL:
cc1plus: warning: command-line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
SDL's own
sdl2-config --cflags
utility for applying the recommended compiler arguments to dependent projects does not include the internal compiler arguments used to build the SDL library so this change aligns the meson wrap more closely to using SDL's native build systems or standard Linux distribution packages.