Skip to content

FindPkgConfig: Support crosscompiling

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

Loading