install — CMake 3.23.0-rc4 Documentation
cmake.org › cmake › helpThe install() command generates a file, cmake_install.cmake, inside the build directory, which is used internally by the generated install target and by CPack. You can also invoke this script manually with cmake-P. This script accepts several variables: COMPONENT. Set this variable to install only a single CPack component as opposed to all of them.
Installing Files — Mastering CMake
cmake.org › mastering-cmake › chapterThe variable CMAKE_INSTALL_PREFIX is set to the actual installation prefix. This may be different from the corresponding cache variable value, because the installation scripts may be executed by a packaging tool that uses a different prefix. An environment variable ENV{DESTDIR} may be set by the user or packaging tool. Its value is prepended to the installation prefix and to absolute installation paths to determine the location where files are installed.
Installing | CMake
https://cmake.org/installOne may alternatively download and build CMake from source. The Download page provides source releases. There are two possible approaches for building CMake from a source tree. If there is no existing CMake installation, a bootstrap script is …