Skip to content

Commit

Permalink
init-repository: Check for cmake
Browse files Browse the repository at this point in the history
And bail out with proper warning if cmake is missing

Change-Id: I39a9e340f873f8de05264d57b2a80fb754b30fbe
Reviewed-by:  Alexey Edelev <[email protected]>
  • Loading branch information
Inkane committed Mar 26, 2024
1 parent b1a9c94 commit 61dc233
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions init-repository
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
optfile=init-repository.opt
opttmpfile=init-repository.opt.in

# check whether cmake exists
if ! [ -x "$(command -v cmake)" ]; then
echo "Error: cmake was not found. You need to install it before configuring Qt."
exit 1
fi

# Posix compatible way to truncate file
: > "$optfile"
: > "$opttmpfile"
Expand Down

0 comments on commit 61dc233

Please sign in to comment.