Specify version in meson.build (#2139)
Some checks are pending
abidiff / abi (push) Waiting to run
test / style-check (push) Waiting to run
test / ubuntu (32-bit) (push) Waiting to run
test / ubuntu (64-bit) (push) Waiting to run
test / macos (push) Waiting to run
test / windows with SSL (push) Waiting to run
test / windows without SSL (push) Waiting to run
test / windows compiled (push) Waiting to run

I prefer to specify version when I'm calling dependency() and lack of makes me unable to do it
This commit is contained in:
QWERTIOX 2025-05-16 16:02:32 +02:00 committed by GitHub
parent c216dc94d2
commit 366eda72dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,7 @@ if get_option('cpp-httplib_compile')
soversion: version.split('.')[0] + '.' + version.split('.')[1],
install: true
)
cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, link_with: lib, sources: httplib_ch[1])
cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, link_with: lib, sources: httplib_ch[1], version: version)
import('pkgconfig').generate(
lib,
@ -98,7 +98,7 @@ if get_option('cpp-httplib_compile')
)
else
install_headers('httplib.h')
cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, include_directories: '.')
cpp_httplib_dep = declare_dependency(compile_args: args, dependencies: deps, include_directories: '.', version: version)
import('pkgconfig').generate(
name: 'cpp-httplib',