Skip to content

Commit

Permalink
Skip 'cmask nasm dependency' test if nasm is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
res2k committed Nov 21, 2024
1 parent f707488 commit 089bc37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test cases/cmake/28 cmake nasm dependency/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ endif

# First dependency triggers initial compilers state update
sub_dep_1 = dependency('cmTest1')
# Add nasm as a language..
add_languages('nasm', required: true, native: false)
# Add nasm as a language...
if not add_languages('nasm', required: false, native: false)
error('MESON_SKIP_TEST: nasm not found')
endif
# ...and check for 2nd dependency. Together with cmake_skip_compiler_test = 'always',
# this triggers another CMake compilers state update, this time with nasm
# in the mix
Expand Down

0 comments on commit 089bc37

Please sign in to comment.