mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
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
10 lines
451 B
ReStructuredText
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`.
|