mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user