diff options
author | Daniel Kolesa <daniel@octaforge.org> | 2022-03-26 04:00:49 +0100 |
---|---|---|
committer | Daniel Kolesa <daniel@octaforge.org> | 2022-03-27 00:16:36 +0100 |
commit | f09dabd1530d7f8dd2d169b4e0da57a13ac20692 (patch) | |
tree | 5302e2e6b202e861808527d9cd3ef51fa616167c | |
parent | ee7842edca943555681e447a0a83d062a3050c5c (diff) | |
download | libosinfo-f09dabd1530d7f8dd2d169b4e0da57a13ac20692.tar.gz |
build: only include header file in the declared libosinfo dep
This prevents compiling a separate copy of the enums .c file
into anything using the libosinfo_dep target. Doing so would
result in types occasionally getting registered twice, at least
when libosinfo is built with Clang.
Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
-rw-r--r-- | osinfo/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osinfo/meson.build b/osinfo/meson.build index cdd150a..a7c5a35 100644 --- a/osinfo/meson.build +++ b/osinfo/meson.build @@ -161,7 +161,7 @@ libosinfo = library( libosinfo_dep = declare_dependency( sources: [ - libosinfo_enum_types, + libosinfo_enum_types[1], ], link_with: libosinfo, dependencies: libosinfo_dependencies, |