aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-09 17:51:11 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-09 17:51:11 +0200
commitf1116bc16a0819ddb427789b8f21ea2f28100cfd (patch)
tree027d633544bd4c1af818ab10d12f98df1c78c58d
parent05e75ab3e736659fab509b394282ef65ef78be19 (diff)
downloadmeson-f1116bc16a0819ddb427789b8f21ea2f28100cfd.zip
meson-f1116bc16a0819ddb427789b8f21ea2f28100cfd.tar.gz
meson-f1116bc16a0819ddb427789b8f21ea2f28100cfd.tar.bz2
Skip CMake dependency check if CMake is not installed.
-rw-r--r--test cases/linuxlike/13 cmake dependency/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/linuxlike/13 cmake dependency/meson.build b/test cases/linuxlike/13 cmake dependency/meson.build
index 1cf667a..72773b2 100644
--- a/test cases/linuxlike/13 cmake dependency/meson.build
+++ b/test cases/linuxlike/13 cmake dependency/meson.build
@@ -1,5 +1,9 @@
project('external CMake dependency', 'c')
+if not find_program('cmake', required: false).found()
+ error('MESON_SKIP_TEST cmake binary not available.')
+endif
+
# Zlib is probably on all dev machines.
dep = dependency('ZLIB', version : '>=1.2', method : 'cmake')