Browse Source

Added meson.override_dependency if running as a subproject.

Aaro Saila 1 tháng trước cách đây
mục cha
commit
61301a8862
1 tập tin đã thay đổi với 4 bổ sung và 0 xóa
  1. 4 0
      meson.build

+ 4 - 0
meson.build

@@ -41,6 +41,10 @@ scufcont_dep = declare_dependency(
   version: meson.project_version()
 )
 
+if meson.is_subproject()
+  meson.override_dependency('scufcont', scufcont_dep)
+endif
+
 if get_option('SCUFCONT_BUILD_TESTS') == true
   subdir('tests')
 endif