test cases/cmake/14 fortran threads/meson.build
raw| 1 | project('FortranThreads') |
| 2 | |
| 3 | if not add_languages('fortran', required: false) |
| 4 | error('MESON_SKIP_TEST: Fortran language not available.') |
| 5 | endif |
| 6 | |
| 7 | # want to be sure that CMake can find dependencies where even if the |
| 8 | # project isn't C, the C language is required to find the library. |
| 9 | threads = dependency('threads', method: 'cmake', required: false) |
| 10 | if not threads.found() |
| 11 | error('MESON_SKIP_TEST: CMake backend not working for Fortran / threads') |
| 12 | endif |