Write a custom directory title here
Execute cmake -DCMAKE_INSTALL_PREFIX and report an error
Environment: centOS 7.3 executes cmake -DCMAKE_INSTALL_PREFIX=/usr/local/CGAL-
4.13.1 to install CGAL-4.13.1.tar.xz and reports an error
Doubtful
The version of cmake is relatively low
because the version installed with yum is 2.8.
yum install cmake
The plan is to update the version to solve it.
cmake version upgrade
Download the installation package
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
Compile and install
tar zxvf cmake-3.*
cd cmake-3.*
./bootstrap --prefix=/usr/local
make -j$(nproc)
make install
View version
cmake --version
If the following error is reported, please execute hash -r first
hash -r
cmake --version