Merge branch 'bilelmoussaoui/fix-subproject-build' into 'main'

build: Fix building as a subproject

See merge request chergert/libmks!4
This commit is contained in:
Christian Hergert 2023-04-04 03:22:49 +00:00
commit 0b46c75dc8

View File

@ -137,7 +137,7 @@ test_link_args = [
'-Wl,-z,relro',
'-Wl,-z,now',
]
if not get_option('buildtype').startswith('debug')
if not get_option('buildtype').startswith('debug') and not meson.is_subproject()
add_global_arguments(['-DG_DISABLE_CAST_CHECKS'], language: 'c')
release_args += [ '-DG_DISABLE_ASSERT' ]
test_link_args += [