CMake

CMake is a build tool commonly used when compiling other libraries.

Usage

After connecting to Stanage (see Establishing a SSH connection), start an interactive session with the following command:

srun --pty bash -i

CMake can be loaded with one of:

module load CMake/3.26.3-GCCcore-12.3.0
module load CMake/3.24.3-GCCcore-12.2.0
module load CMake/3.24.3-GCCcore-11.3.0
module load CMake/3.23.1-GCCcore-11.3.0
module load CMake/3.22.1-GCCcore-11.2.0
module load CMake/3.21.1-GCCcore-11.2.0
module load CMake/3.20.1-GCCcore-10.3.0
module load CMake/3.18.4-GCCcore-10.2.0
module load CMake/3.16.4-GCCcore-9.3.0
module load CMake/3.15.3-GCCcore-8.3.0
module load CMake/3.12.1
module load CMake/3.11.4-GCCcore-7.3.0
module load CMake/3.10.2-GCCcore-9.3.0
module load CMake/3.10.2-GCCcore-6.4.0
module load CMake/3.9.1-GCCcore-6.4.0

Usage of CMake often involves:

  1. Creating and cd-ing into a dedicated build directory within a source tree then

  2. Running something like cmake -DSOME_OPTION -DANOTHER_OPTION ..