If you are using the shell archive from cmake.org, it supports a —prefix and
—exclude-subdir option, e.g.:
cd /tmp
CM_INSTALLER=cmake-3.14.0-Linux-x86_64.sh
CM_VER_DIR=/opt/local/cmake/3.14
wget https://cmake.org/files/v3.14/$CM_INSTALLER
chmod a+x $CM_INSTALLER
mkdir -p $CM_VER_DIR
./$CM_INSTALL
hello,
I'd like to install CMake under /usr/local/cmake/3.15/bin/ or similar.
Is it possible to add the version number to a build option, like
-DCMAKE_INSTALL_PREFIX
or do I need to modify CMake sources?
thank you
--
Powered by www.kitware.com
Please keep messages on-topic and check the