pkg_get_variable difference between pkg-config 0.27 and 0.29
Hi there,
when trying FindCURL
I noticed that the components search does not work. Interestingly enough it worked on another system. Digging deeper I found this commit https://github.com/freedesktop/pkg-config/commit/50c2867f4a6981e085c721d936c96f174f11f415 which is part of pkg-config 0.29.1 and unquotes variables.
So with pkg-config 0.27 (shipped with CentOS 7) I get:
pkg-config --variable=supported_protocols libcurl
"HTTP HTTPS MQTT"
which in pkg_get_variable results in ['"HTTP', 'HTTPS', 'MQTT"']
and with pkg-config 0.29 I get:
pkg-config --variable=supported_protocols libcurl
HTTP HTTPS MQTT
which in pkg_get_variable results in ['HTTP', 'HTTPS', 'MQTT']
-- which allows FindCURL
to actually find the HTTP component.
Is there anything CMake can do? Is there any workaround I could apply short of upgrading pkg-config?