Skip to content

Commit c486f4e

Browse files
committed
Updated build script
1 parent f211f2e commit c486f4e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ EXAMPLES_DONE=0
1111
TOOLS_DONE=0
1212
CPU_COUNT=1
1313

14+
# Check if its linux or cmake is not installed
15+
if [ $OSTYPE == linux-gnu ]; then
16+
if ! command -v cmake &> /dev/null; then
17+
MAKE_TOOL="make"
18+
fi
19+
fi
20+
21+
# Parse command line arguments
1422
for arg in "$@"; do
1523
if [[ $arg == --tool=* || $arg == -m=* ]]; then
1624
MAKE_TOOL="${arg#*=}"

0 commit comments

Comments
 (0)