aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-09 02:15:30 -0500
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2019-12-09 11:15:58 -0500
commit6eb67ee8486615c26d12b30f6dcfad8e06fb88d5 (patch)
tree951ab22501159add2ecae59b34f4daee1d72df9f /test cases/cmake
parent98fd4e5557cb21affd2e2c124a132953b471a748 (diff)
downloadmeson-6eb67ee8486615c26d12b30f6dcfad8e06fb88d5.zip
meson-6eb67ee8486615c26d12b30f6dcfad8e06fb88d5.tar.gz
meson-6eb67ee8486615c26d12b30f6dcfad8e06fb88d5.tar.bz2
cmake test: skip case where Cmake backend not Fortran-compatible
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/14 fortran threads/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/test cases/cmake/14 fortran threads/meson.build b/test cases/cmake/14 fortran threads/meson.build
index f160ca8..2d2f892 100644
--- a/test cases/cmake/14 fortran threads/meson.build
+++ b/test cases/cmake/14 fortran threads/meson.build
@@ -6,4 +6,7 @@ endif
# want to be sure that CMake can find dependencies where even if the
# project isn't C, the C language is required to find the library.
-threads = dependency('threads', method: 'cmake', required: true)
+threads = dependency('threads', method: 'cmake', required: false)
+if not threads.found()
+ error('MESON_SKIP_TEST: CMake backend not working for Fortran / threads')
+endif