From 6789bba624e5cb317b2dce0ba3664a03bfca6b6b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 30 Mar 2023 14:29:38 +0200 Subject: [PATCH] build: Fix building as a subproject --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index b5c8970..259ffaa 100644 --- a/meson.build +++ b/meson.build @@ -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 += [