This repository has been archived by the owner on May 19, 2023. It is now read-only.
forked from esy-packages/esy-cmake
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build cmake from source regardless of whether system has is installed
- Loading branch information
1 parent
449d78a
commit 0a4470c
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|