Skip to content

Commit 8a0d156

Browse files
committed
meson: find symmetrica dependency via pkg-config
1 parent 629f606 commit 8a0d156

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/sage/libs/symmetrica/meson.build

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
# Cannot be found by pkg-config
2-
symmetrica = cc.find_library(
3-
'symmetrica',
4-
required: not is_windows,
5-
disabler: true,
6-
)
1+
symmetrica = dependency('symmetrica', required: false, disabler: true)
2+
if not symmetrica.found()
3+
# fallback for older versions without pkg-config
4+
symmetrica = cc.find_library(
5+
'symmetrica',
6+
required: not is_windows,
7+
disabler: true,
8+
)
9+
endif
710

811
py.install_sources('__init__.py', 'all.py', subdir: 'sage/libs/symmetrica')
912

0 commit comments

Comments
 (0)