diff --git a/common/meson.build b/common/meson.build index a2686387..5a0988ae 100644 --- a/common/meson.build +++ b/common/meson.build @@ -16,3 +16,8 @@ libsqsh_common = static_library( dependencies: libsqsh_common_dependencies, install: false, ) + +libsqsh_common_dep = declare_dependency( + link_with: libsqsh_common, + include_directories: libsqsh_common_include, +) diff --git a/libsqsh/meson.build b/libsqsh/meson.build index 931b0e11..65e6a99b 100644 --- a/libsqsh/meson.build +++ b/libsqsh/meson.build @@ -8,6 +8,7 @@ endif libsqsh_dependencies = [ cextras_dep, + libsqsh_common_dep, ] libsqsh_c_args = [] @@ -45,11 +46,9 @@ libsqsh = both_libraries( libsqsh_sources, include_directories: [ libsqsh_private_include, - libsqsh_common_include, libsqsh_include, ], install: not meson.is_subproject(), - link_with: [libsqsh_common], c_args: libsqsh_c_args, dependencies: libsqsh_dependencies, version: meson.project_version(),