diff options
-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 |