Skip to content

FindPkgConfig: Handle backslashes in pkg-config output on Windows.

Fabian Keßler requested to merge Febbe/cmake:FindPkgConfig-win-slashes into master
  • This replaces the UNIX_COMMAND in separate_arguments to NATIVE_COMMAND
  • Since CMake tries to store \x as escaped x in cache variables, the path list must be normalized first.
  • That may introduce problems, program arguments are different to paths.

Fixes: #23641

Edited by Brad King

Merge request reports