Files
CMake/Help/release/dev/normalize-install-destination-paths.rst
Craig Scott 6a1fac1450 install: Normalize DESTINATION paths
The file generated by install(EXPORT) computes _IMPORT_PREFIX
in a way that assumes a normalized path. If the DESTINATION
contains any ../ components, the computed _IMPORT_PREFIX
would be wrong. Force the DESTINATION path to be normalized,
subject to the new CMP0176 policy.

Also normalize all other DESTINATION paths for consistency,
except for INCLUDES DESTINATION, which is not strictly a
destination but rather a search path to add.

Fixes: #26252
2024-09-19 20:31:47 +10:00

7 lines
265 B
ReStructuredText

normalize-install-destination-paths
-----------------------------------
* All ``DESTINATION`` arguments in :command:`install` commands
are now :ref:`normalized <Normalization>`, with the exception
of ``INCLUDES DESTINATION`` arguments in the ``TARGETS`` form.