diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-03-25 09:03:50 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2024-03-26 23:07:40 +0100 |
commit | 61dc23304458497bb1211ec0d821d6486bbcad66 (patch) | |
tree | 900134f48634b01b12ea95daa74aac7440bdd53a /init-repository | |
parent | b1a9c94a19390599cd35b3319fb5076c66433c14 (diff) |
init-repository: Check for cmake
And bail out with proper warning if cmake is missing
Change-Id: I39a9e340f873f8de05264d57b2a80fb754b30fbe
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init-repository b/init-repository index 8a4469bf..8becca95 100755 --- a/init-repository +++ b/init-repository @@ -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" |