I need to configure geos dependency in a meson project. geos provide a geos-config
program, but doesn't provide pkg-config file in rocky linux.
According to the documentation, meson dependency
function provide a method
argument which can be config-tool
.
I have tried
geos_dep = dependency('geos', method: 'config-tool')
But that doesn't work:
Run-time dependency geos found: NO
Nothing more in meson-log.txt
I need to configure geos dependency in a meson project. geos provide a geos-config
program, but doesn't provide pkg-config file in rocky linux.
According to the documentation, meson dependency
function provide a method
argument which can be config-tool
.
I have tried
geos_dep = dependency('geos', method: 'config-tool')
But that doesn't work:
Run-time dependency geos found: NO
Nothing more in meson-log.txt
1 Answer
Reset to default 0config-tool
is used by a hardcoded list of supported tools: https://mesonbuild/Dependencies.html#dependencies-with-custom-lookup-functionality
So you will have to manually use the tool with run_command()
and parse its output.
You could also request/add this tool to meson itself.