Skip to content

Commit

Permalink
TST: make cmake-subproject test package work with older Meson
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Mar 12, 2024
1 parent 97154b2 commit b1f6a08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/packages/cmake-subproject/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

project('cmake-subproject', ['c', 'cpp', 'cython'], version: '1')

dep = dependency('cmaketest')
if meson.version().version_compare('>= 1.3.0')
dep = dependency('cmaketest')
else
dep = import('cmake').subproject('cmaketest').dependency('cmaketest')
endif

py = import('python').find_installation()

Expand Down

0 comments on commit b1f6a08

Please sign in to comment.