FindImageMagick: Fix ARCH_INCLUDE_DIR detection for version 7 and newer

The `magick-baseconfig.h` header has been moved to a different subdirectory.

See https://bugs.debian.org/1087233 for the original bug report in Debian.
This commit is contained in:
Timo Röhling
2024-11-12 09:47:51 +01:00
committed by Brad King
parent 4f0eb0a41e
commit f6c6032e22

View File

@@ -133,7 +133,9 @@ function(FIND_IMAGEMAGICK_API component header)
NO_DEFAULT_PATH
)
find_path(ImageMagick_${component}_ARCH_INCLUDE_DIR
NAMES magick/magick-baseconfig.h
NAMES
magick/magick-baseconfig.h
MagickCore/magick-baseconfig.h
HINTS
${PC_${component}_INCLUDEDIR}
${PC_${component}_INCLUDE_DIRS}