Skip to content

Commit

Permalink
added CMake to chinook
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Feb 15, 2024
1 parent 25d220b commit ed76161
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions chinook/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set -u

build_all () {
# build PISM, its prerequisites, and some tools
./cmake.sh
./cdo.sh
./petsc-64bit.sh
./pism.sh
Expand Down
21 changes: 21 additions & 0 deletions chinook/cmake.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

build_dir=${build_dir:-/var/tmp/build/cmake}
prefix=${prefix:-$HOME/local}
url=https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3.tar.gz

mkdir -p ${build_dir}
cd ${build_dir}

wget -nc ${url}

rm -rf cmake-3.28.3
tar xzf cmake-3.28.3.tar.gz

cd cmake-3.28.3

./configure \
--prefix=${prefix} 2>&1 | tee cmake_configure.log

make all -j 12 2>&1 | tee cmake_compile.log
make install -j 12 2>&1 | tee cmake_install.log

0 comments on commit ed76161

Please sign in to comment.