File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,16 @@ if not m4rie.found()
148
148
# For some reason, m4rie is not found via pkg-config on some systems (eg Conda)
149
149
m4rie = cc.find_library (' m4rie' , required : not is_windows, disabler : true )
150
150
endif
151
- # Cannot be found via pkg-config
152
- mtx = cc.find_library (
153
- ' mtx' ,
154
- required : false ,
155
- disabler : true ,
156
- has_headers : [' meataxe.h' ],
157
- )
151
+ mtx = dependency (' mtx' , required : false )
152
+ if not mtx.found()
153
+ # fallback for older versions without pkg-config
154
+ mtx = cc.find_library (
155
+ ' mtx' ,
156
+ required : false ,
157
+ disabler : true ,
158
+ has_headers : [' meataxe.h' ],
159
+ )
160
+ endif
158
161
png = dependency ([' libpng' , ' png' , ' png16' ], version : ' >=1.2' )
159
162
zlib = dependency (' zlib' , version : ' >=1.2.11' )
160
163
# We actually want >= 20231212, but the version number is not updated in the pkgconfig
You can’t perform that action at this time.
0 commit comments