File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ function gg_run_ctest_debug {
103
103
104
104
set -e
105
105
106
+ # Check cmake, make and ctest are installed
107
+ gg_check_build_requirements
108
+
106
109
(time cmake -DCMAKE_BUILD_TYPE=Debug ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT /${ci} -cmake.log
107
110
(time make -j ) 2>&1 | tee -a $OUT /${ci} -make.log
108
111
@@ -131,6 +134,9 @@ function gg_run_ctest_release {
131
134
132
135
set -e
133
136
137
+ # Check cmake, make and ctest are installed
138
+ gg_check_build_requirements
139
+
134
140
(time cmake -DCMAKE_BUILD_TYPE=Release ${CMAKE_EXTRA} .. ) 2>&1 | tee -a $OUT /${ci} -cmake.log
135
141
(time make -j ) 2>&1 | tee -a $OUT /${ci} -make.log
136
142
@@ -701,6 +707,20 @@ function gg_run_embd_bge_small {
701
707
set +e
702
708
}
703
709
710
+ function gg_check_build_requirements {
711
+ if ! command -v cmake & > /dev/null; then
712
+ gg_printf ' cmake not found, please install'
713
+ fi
714
+
715
+ if ! command -v make & > /dev/null; then
716
+ gg_printf ' make not found, please install'
717
+ fi
718
+
719
+ if ! command -v ctest & > /dev/null; then
720
+ gg_printf ' ctest not found, please install'
721
+ fi
722
+ }
723
+
704
724
function gg_sum_embd_bge_small {
705
725
gg_printf ' ### %s\n\n' " ${ci} "
706
726
You can’t perform that action at this time.
0 commit comments