diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-09-29 20:54:17 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-12 17:33:27 +0200 |
| commit | cd92063f7c67093ac789cb3aa78e534a3a85ef92 (patch) | |
| tree | fca2c1833ff907e8c9a4e7a93aafc448f827631e | |
| parent | b8d0139e5527cff306ffca5ccdc0c1d1df0fb753 (diff) | |
Cope with different names for ImageMagick's .pc file (Linux and macOS).
| -rw-r--r-- | test/wscript | 3 |
1 files changed, 2 insertions, 1 deletions
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') |
