build(vendor-libraries): update install to be more reliable

vendor libaries for libconfig are now properly installed so linking can be done reliably
This commit is contained in:
2026-06-05 11:19:17 +02:00
parent 5adadc2f41
commit 3937a2b828
7 changed files with 23 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
tomlpp_dep = dependency('tomlplusplus', required: true, static: true).as_system()
reflect_cpp_sources = files(
'src/yyjson.c',
@@ -21,7 +20,7 @@ reflect_cpp_library = static_library(
'reflect_cpp',
reflect_cpp_sources,
include_directories: reflect_cpp_include_dirs,
install: false,
install: true,
dependencies: [tomlpp_dep],
)
@@ -29,4 +28,10 @@ reflect_cpp_dep = declare_dependency(
link_with: reflect_cpp_library,
include_directories: reflect_cpp_include_dirs,
dependencies: [tomlpp_dep],
)
)
install_subdir(
'include',
install_dir: get_option('includedir'),
strip_directory: true
)