diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-12-09 02:15:30 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-12-09 11:15:58 -0500 |
commit | 6eb67ee8486615c26d12b30f6dcfad8e06fb88d5 (patch) | |
tree | 951ab22501159add2ecae59b34f4daee1d72df9f /test cases/cmake | |
parent | 98fd4e5557cb21affd2e2c124a132953b471a748 (diff) | |
download | meson-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.build | 5 |
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 |