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

Commit

Permalink
Merge pull request #1 from prometheansacrifice/uniform-builds
Browse files Browse the repository at this point in the history
Build cmake from source regardless of whether system has is installed
  • Loading branch information
ManasJayanth authored Apr 29, 2019
2 parents 449d78a + 0a4470c commit 2a47392
Showing 1 changed file with 10 additions and 12 deletions.
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

0 comments on commit 2a47392

Please sign in to comment.