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

R: Set CMAKE_BIN=$(command -v cmake3) #63

Closed HenrikBengtsson closed 2 years ago

HenrikBengtsson commented 2 years ago

The nloptr packages requires a modern version of CMake, cf. https://www.c4.ucsf.edu/howto/r.html#the-nloptr-package. The current instructions are to use module load CBI cmake to work around this problem.

However, one can also set CMAKE_BIN to point to the cmake3 binary, cf. https://github.com/astamm/nloptr/issues/104#issuecomment-1111473687.

If CMAKE_BIN is unique to nloptr, it should be safe to do this automatically as part of the r module.

HenrikBengtsson commented 2 years ago

Done