Use the following commands to use a newer version of cmake which is available via spack and modules:

$ bash
$ export MODULEPATH=/afs/slac.stanford.edu/package/spack/share/spack/modules/linux-rhel6-x86_64:/usr/share/Modules/modulefiles:/etc/modulefiles
$ module load cmake-3.9.0-gcc-5.3.0-6ic4wgl
$ cmake --version

After setting MODULEPATH, you can also use this command to see the software available via environment modules:

$ module avail

 

1 Comment

  1. on tcsh

    setenv MODULEPATH /afs/slac/package/spack/share/spack/modules/linux-rhel6-x86_64:/usr/share/Modules/modulefiles:/etc/modulefiles

    or for rich experience

    setenv SPACK_ROOT /afs/slac/package/spack
    source $SPACK_ROOT/share/spack/setup-env.csh