Files
cmake/Help/release/dev/externalproject-install-prefix.rst
T
15daksh-2003 2b07afa1a1 ExternalProject: Default CMAKE_INSTALL_PREFIX to INSTALL_DIR
The default CMake configure command never set an install prefix, so
external projects installed to /usr/local rather than the INSTALL_DIR
the module already reserves. Add policy CMP0225 to pass it by default;
an explicit prefix from the caller still takes precedence.

Fixes: #27050
2026-09-23 18:41:33 +05:30

10 lines
451 B
ReStructuredText

externalproject-install-prefix
------------------------------
* The :command:`ExternalProject_Add` command now sets
:variable:`CMAKE_INSTALL_PREFIX` to the external project's ``INSTALL_DIR`` in
its default configure command, so a CMake external project installs into the
prefix the module reserves for it rather than the built-in default (e.g.
``/usr/local``). A caller-supplied prefix still takes precedence. See policy
:policy:`CMP0225`.