Commit 66915a0 1 parent 9b7feaa commit 66915a0 Copy full SHA for 66915a0
File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,15 @@ while ! test -z $1; do
26
26
PROVISION_MONO=1
27
27
shift
28
28
;;
29
+ --provision-cmake)
30
+ PROVISION_CMAKE=1
31
+ shift
32
+ ;;
29
33
--provision-all)
30
34
PROVISION_MONO=1
31
35
PROVISION_XS=1
32
36
PROVISION_XCODE=1
37
+ PROVISION_CMAKE=1
33
38
shift
34
39
;;
35
40
--ignore-osx)
@@ -459,14 +464,27 @@ function check_osx_version () {
459
464
ok " Found OSX $ACTUAL_OSX_VERSION (at least $MIN_OSX_BUILD_VERSION is required)"
460
465
}
461
466
467
+ function install_cmake () {
468
+ if ! brew --version >& /dev/null; then
469
+ fail " Asked to install cmake, but brew is not installed."
470
+ return
471
+ fi
472
+
473
+ brew install cmake
474
+ }
475
+
462
476
function check_cmake () {
463
477
if ! test -z $IGNORE_CMAKE ; then return ; fi
464
478
465
479
local MIN_CMAKE_VERSION=` grep MIN_CMAKE_VERSION= Make.config | sed ' s/.*=//' `
466
480
local CMAKE_URL=` grep CMAKE_URL= Make.config | sed ' s/.*=//' `
467
481
468
482
if ! cmake --version & > /dev/null; then
469
- fail " You must install CMake ($CMAKE_URL )"
483
+ if ! test -z $PROVISION_CMAKE ; then
484
+ install_cmake
485
+ else
486
+ fail " You must install CMake ($CMAKE_URL )"
487
+ fi
470
488
return
471
489
fi
472
490
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
3
3
cd $( dirname $0 )
4
- ./system-dependencies.sh --provision-mono --ignore-autotools --ignore-xamarin-studio --ignore-xcode --ignore-osx
4
+ ./system-dependencies.sh --provision-mono --ignore-autotools --ignore-xamarin-studio --ignore-xcode --ignore-osx --ignore-cmake
You can’t perform that action at this time.
0 commit comments