From cd92063f7c67093ac789cb3aa78e534a3a85ef92 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Sep 2020 20:54:17 +0200 Subject: [PATCH] Cope with different names for ImageMagick's .pc file (Linux and macOS). --- test/wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/wscript b/test/wscript index 0f90001f6..88df9177f 100644 --- a/test/wscript +++ b/test/wscript @@ -30,7 +30,8 @@ def configure(conf): int main() {} """, msg = 'Checking for boost unit testing library', lib = 'boost_unit_test_framework%s' % boost_test_suffix, uselib_store = 'BOOST_TEST') - conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=True) + if conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=False) is None: + conf.check_cfg(package='Magick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=True) def build(bld): obj = bld(features='cxx cxxprogram') -- 2.30.2