Skip to content

Commit b1f6a08

Browse files
committed
TST: make cmake-subproject test package work with older Meson
1 parent 97154b2 commit b1f6a08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/packages/cmake-subproject/meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

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

7-
dep = dependency('cmaketest')
7+
if meson.version().version_compare('>= 1.3.0')
8+
dep = dependency('cmaketest')
9+
else
10+
dep = import('cmake').subproject('cmaketest').dependency('cmaketest')
11+
endif
812

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

0 commit comments

Comments
 (0)