pkg-config cannot us .pc file in a dir with spaces
There does not seem to be a way to escape spaces when specifying pc file by name, i.e:
pkg-config "dir with spaces/example.pc"
Package dir was not found in the pkg-config search path.
Perhaps you should add the directory containing `dir.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dir' found
Package with was not found in the pkg-config search path.
Perhaps you should add the directory containing `with.pc'
to the PKG_CONFIG_PATH environment variable
No package 'with' found
Failed to open 'spaces/example.pc': No such file or directory
No package 'spaces/example.pc' found
pkg-config "dir\ with\ spaces/example.pc"
...
pkg-config "dir\\ with\\ spaces/example.pc"
...
pkg-config dir\ with\ spaces/example.pc"
...
cd dir\ with\ spaces && pkg-config example.pc
0.3.0
this would be useful for configure
scripts, where it is not always easy to change environment variables. pkg-conf supports a --with-dir="PATH"
switch which seems to work around this.