Переглянути джерело

Added meson.override_dependency if running as a subproject.

Aaro Saila 1 місяць тому
батько
коміт
61301a8862
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      meson.build

+ 4 - 0
meson.build

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