From 0a4470c43226c0e76c2cdb97cf68cd425b7bdc41 Mon Sep 17 00:00:00 2001 From: Manas Date: Mon, 29 Apr 2019 16:58:38 +0530 Subject: [PATCH] Build cmake from source regardless of whether system has is installed --- build.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/build.sh b/build.sh index 07d8f59..3c2bf92 100755 --- a/build.sh +++ b/build.sh @@ -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 +