Commit 571347e7 authored by Gonzalo Bayo's avatar Gonzalo Bayo

Added CMake 3.12.2 module

parent 4edff126
#!/bin/bash
# Download, compile and install cmake 3.12.2
cd $HOME/opt/src
wget http://www.cmake.org/files/v3.12/cmake-3.12.2.tar.gz
tar zxvf cmake-3.12.2.tar.gz
cd cmake-3.12.2
mkdir -p Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/opt/cmake-3.12.2
make install $1
ln -s ~/opt/modules/modules/cmake-3.12.2 ~/opt/modules/installed/cmake-3.12.2
echo "module load cmake-3.12.2" >> $HOME/.bashrc
source $HOME/.bashrc
#%Module1.0
##
## CMake 3.12.2
set version 3.12.2
set home $::env(HOME)
set prefix $home/opt/cmake-3.12.2
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment