GenerateImportPrefix generates wrong relative import prefix if install destination was a non-normalized path
When exporting a file using something like
install (EXPORT my-targets DESTINATION "${MY_EXPORT_DESTINATION}")
with MY_EXPORT_DESTINATION set to a non-normalized path, e.g. "lib/./cmake",
the resulting *targets.cmake file contains too many lines of get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
.
The reason for this seems to be that expDest is not being normalized in https://github.com/Kitware/CMake/blob/v3.28.2/Source/cmExportInstallFileGenerator.cxx#L220
Edited by Brad King