[Pkg-cmake-team] Bug#1087233: cmake-data: FindImageMagick.cmake fails to locate arch-specific include dir

Andreas Metzler ametzler at bebt.de
Sun Nov 10 15:30:19 GMT 2024


On 2024-11-10 Andreas Metzler <ametzler at bebt.de> wrote:
[...]

> pfstools uses cmakes FindImageMagick.cmake as
> find_package(ImageMagick COMPONENTS Magick++ MagickCore)

> With imagemagick 7 magick-baseconfig.h was moved from 
> /usr/include/x86_64-linux-gnu/ImageMagick-6/magick/magick-baseconfig.h
> to
> /usr/include/x86_64-linux-gnu/ImageMagick-7/MagickCore/magick-baseconfig.h
> and FindImageMagick.cmake only looks in magick/ not in MagickCore/. 

Changing FindImageMagick.cmake to also search in MagickCore/ works for me.

-    NAMES magick/magick-baseconfig.h
+    NAMES magick/magick-baseconfig.h MagickCore/magick-baseconfig.h

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-cmake-team mailing list