#!/bin/sh

set -e

readonly cmake_version="3.6"
readonly cmake_version_patch="1"
readonly cmake_version_full="${cmake_version}.${cmake_version_patch}"

readonly url="https://cmake.org/files/v${cmake_version}/cmake-${cmake_version_full}.tar.gz"

readonly workdir="$HOME/misc/code/cmake"
readonly srcdir="$workdir/cmake-${cmake_version_full}"
readonly builddir="$workdir/build"

mkdir -p "$builddir"
curl "$url" | tar xz -C "$workdir"
cd "$builddir"
"$srcdir/bootstrap" \
  --parallel=8 \
  --system-curl \
  --prefix="$HOME/misc/root/cmake"
make -j8 install
rm -rf "$workdir"

#!/bin/sh

set -e

readonly cmake_version="3.10"
readonly cmake_version_patch="2"
readonly cmake_version_full="${cmake_version}.${cmake_version_patch}"

readonly url="https://cmake.org/files/v${cmake_version}/cmake-${cmake_version_full}.tar.gz"

readonly workdir="$HOME/misc/code/cmake"
readonly srcdir="$workdir/cmake-${cmake_version_full}"
readonly builddir="$workdir/build"

mkdir -p "$builddir"
curl "$url" | tar xz -C "$workdir"
cd "$builddir"
"$srcdir/bootstrap" \
  --parallel=8 \
  --system-curl \
  --prefix="$HOME/misc/root/cmake"
make -j8 install
rm -rf "$workdir"

Update linux itk-builder cmake to 3.10.2
Update linux itk-builder cmake to 3.10.2

This is the version that is required for ITK 5.0.0.

Signed-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>
