summaryrefslogtreecommitdiffstats
path: root/test cases/cmake/14 fortran threads/meson.build
blob: 2d2f8920812f545ecf7421c67a704daec1f26009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
project('FortranThreads')

if not add_languages('fortran', required: false)
  error('MESON_SKIP_TEST: Fortran language not available.')
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: false)
if not threads.found()
  error('MESON_SKIP_TEST: CMake backend not working for Fortran / threads')
endif