Skip to content

FindPkgConfig: Support crosscompiling

Raul Tambre requested to merge tambre/cmake:pkgconfig_sysroot into master

Assume we're searching from sysroot if we're crosscompiling and CMAKE_SYSROOT is specified. We need to prepend the sysroot path to paths we find this way, because they're relative to the sysroot.

Previously FindPkgConfig would simply bail if crosscompiling.

Merge request reports