HenrikBengtsson / CBI-software

A Scientific Software Stack for HPC (CentOS oriented)
https://wynton.ucsf.edu/hpc/software/software-repositories.html
5 stars 2 forks source link

cmake 3: No need to install from source since cmake3 exists - just add cmake -> cmake3 link to PATH #14

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 3 years ago

On C4 and on Wynton:

$ cmake --version
cmake version 2.8.12.2

$ cmake3 --version
cmake3 version 3.17.5

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ command -v cmake cmake3
/usr/bin/cmake
/usr/bin/cmake3
HenrikBengtsson commented 2 years ago

Seems complicated, because cmake and cmake3 are both in the same folder. For software that doesn't pick up cmake3 by themselves, we would have to fake a cmake-3.17.5/bin/cmake -> /usr/bin/cmake3 and puth that on the PATH. This would still require an "install" and a module. Unless there are other solutions, it seems equally easy to just install cmake under the CBI stack, which is easy.