File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
prerequisites/build-functions Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ build_and_install()
23
23
info " pushd ${build_path} "
24
24
pushd " ${build_path} "
25
25
26
- if [[ " ${package_to_build} " != " gcc" ]]; then
26
+ if [[ " ${package_to_build} " != " gcc" && " ${package_to_build} " != " cmake " ]]; then
27
27
28
28
if [[ " ${package_to_build} " == " mpich" && " ${version_to_build} " == " 3.2" ]]; then
29
29
info " Patching MPICH 3.2 on Mac OS due to segfault bug (see http://lists.mpich.org/pipermail/discuss/2016-May/004764.html)."
@@ -46,7 +46,11 @@ build_and_install()
46
46
info " Installing with the following command: ${SUDO:- } make install"
47
47
${SUDO:- } make install
48
48
49
- else # ${package_to_build} == "gcc"
49
+ elif [[ ${package_to_build} == " cmake" ]]; then
50
+
51
+ emergency " Ready to install cmake binary in ${PWD} "
52
+
53
+ elif [[ ${package_to_build} == " gcc" ]]; then
50
54
51
55
info " pushd ${download_path} /${package_source_directory} "
52
56
pushd " ${download_path} /${package_source_directory} "
@@ -83,7 +87,10 @@ build_and_install()
83
87
info " Installing with the following command: ${SUDO:- } make install"
84
88
${SUDO:- } make install
85
89
86
- fi # end if [[ "${package_to_build}" != "gcc" ]]; then
90
+ else
91
+ emergency " This branch should never be reached."
92
+ fi # end if [[ "${package_to_build}" != "gcc" && "${package_to_build}" != "cmake" ]]; then
93
+
87
94
88
95
info " popd"
89
96
popd
Original file line number Diff line number Diff line change 71
71
" flex;flex-${version_to_build-} .tar.bz2"
72
72
" bison;bison-${version_to_build-} .tar.gz"
73
73
" make;make-${version_to_build-} .tar.bz2"
74
- " cmake;cmake-${version_to_build-} .tar.gz"
75
74
" subversion;subversion-${version_to_build-} .tar.gz"
76
75
)
76
+ if [[ $( uname) == " Linux" ]]; then
77
+ package_url_tail+=(" cmake;cmake-${version_to_build} -Linux-x86_64.sh" )
78
+ else
79
+ package_url_tail+=(" cmake;cmake-${version_to_build-} .tar.gz" )
80
+ fi
77
81
for package in " ${package_url_tail[@]} " ; do
78
82
KEY=" ${package%% ;* } "
79
83
VALUE=" ${package##* ;} "
84
88
fi
85
89
done
86
90
91
+
87
92
if [[ -z " ${url_head:- } " || -z " ${url_tail} " ]]; then
88
93
emergency " Package ${package_name:- } not recognized. Use --l or --list-packages to list the allowable names."
89
94
fi
You can’t perform that action at this time.
0 commit comments