From d01ebd960a81f0ea8d64128f3986868b56b46c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Masiukiewicz?= Date: Sun, 19 Jun 2022 14:31:49 +0200 Subject: [PATCH] Allow simpler use of ecs from parent project This allows parent project to find subproject by simple: decs_dep = dependency('decs') --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index a43783c..b3770bf 100644 --- a/meson.build +++ b/meson.build @@ -43,7 +43,7 @@ if betterC_opt if comp_id == 'gcc' args += ['-fno-druntime'] link_args += ['-fno-druntime'] - else + else args += '-betterC' link_args += '-betterC' endif @@ -63,9 +63,11 @@ ecs_lib = library('decs', decs_dep = declare_dependency( include_directories : [inc], link_with : ecs_lib, - dependencies : threads_dep, + dependencies : threads_dep, ) +meson.override_dependency('decs', decs_dep) + # Tests if BuildTests_opt subdir('tests') -- 2.47.2