Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Build cmake from source regardless of whether system has is installed #1

Merged
merged 1 commit into from
Apr 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
BUILDDIR=$cur__root/_build
PREFIX=$cur__install

if which cmake; then
echo "Cmake already available, not building"
else
echo Using builddir: $BUILDDIR
echo Using prefix: $PREFIX

mkdir -p $BUILDDIR
git clone https://github.com/kitware/cmake $BUILDDIR/cmake
cd $BUILDDIR/cmake; git checkout 7700df9b1ef66761cad08cfc08344d5b27660e9f
cd $BUILDDIR/cmake; ./bootstrap --prefix=$PREFIX
cd $BUILDDIR/cmake; make
cd $BUILDDIR/cmake; make install
fi
echo Using builddir: $BUILDDIR
echo Using prefix: $PREFIX

mkdir -p $BUILDDIR
git clone https://github.com/kitware/cmake $BUILDDIR/cmake
cd $BUILDDIR/cmake; git checkout 7700df9b1ef66761cad08cfc08344d5b27660e9f
cd $BUILDDIR/cmake; ./bootstrap --prefix=$PREFIX
cd $BUILDDIR/cmake; make
cd $BUILDDIR/cmake; make install