Skip to content

FindPkgConfig: fix cmake not finding packages on msys2 and cygwin

Steve Lhomme requested to merge robUx41/cmake:pkgconfig-cygwin into master

Otherwise the PKG_CONFIG_PATH is converted to a Windows-like path within CMake and thus pkg-config from msys2/cygwin can't use it.

The paths are converted to something msys2 can understand using cygpath.exe

Edited by Brad King

Merge request reports