meson: add link flags also to cpp

If subprojects are used, linking language of mpv might be upgraded to C++
add our flags there too.
This commit is contained in:
Kacper Michajłow 2024-05-10 20:46:07 +02:00
parent 0d18c1bfdc
commit d79aef1425
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ endif
add_project_arguments(flags, language: 'c')
add_project_arguments(['-Wno-unused-parameter'], language: 'objc')
add_project_link_arguments(link_flags, language: ['c', 'objc'])
add_project_link_arguments(link_flags, language: ['c', 'cpp', 'objc'])
# osdep