Fork me on GitHub

CMake

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

Usage

CMake can be loaded with:

module load dev/cmake/3.7.1/gcc-4.9.4
module load dev/cmake/3.17.1/gcc-8.2

NB CMake has a run-time dependency on libstdc++ so the above also needs to (and does) load the GCC compiler version 4.9.4, or version 8.2

Usage 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 ..

Installation

Version 3.7.1

  1. Install using this script

  2. Install this modulefile as /usr/local/modulefiles/dev/cmake/3.7.1/gcc-4.9.4

Version 3.17.1

  1. Install using this script

  2. Install this modulefile as /usr/local/modulefiles/dev/cmake/3.17.1/gcc-8.2