mirror of
https://github.com/reactos/CMake.git
synced 2025-02-17 10:10:19 +00:00
FindImageMagick: Find components in same locations as main package
Fix component include/library path if multiple versions are installed. When searching for individual components, look only in the locations we expect to find them that we already computed.
This commit is contained in:
parent
e3ce4d7a28
commit
68d1fc89ed
@ -104,6 +104,7 @@ function(FIND_IMAGEMAGICK_API component header)
|
||||
PATH_SUFFIXES
|
||||
ImageMagick ImageMagick-6 ImageMagick-7
|
||||
DOC "Path to the ImageMagick arch-independent include dir."
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
find_path(ImageMagick_${component}_ARCH_INCLUDE_DIR
|
||||
NAMES magick/magick-baseconfig.h
|
||||
@ -116,6 +117,7 @@ function(FIND_IMAGEMAGICK_API component header)
|
||||
PATH_SUFFIXES
|
||||
ImageMagick ImageMagick-6 ImageMagick-7
|
||||
DOC "Path to the ImageMagick arch-specific include dir."
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
find_library(ImageMagick_${component}_LIBRARY
|
||||
NAMES ${ARGN}
|
||||
@ -125,6 +127,7 @@ function(FIND_IMAGEMAGICK_API component header)
|
||||
PATHS
|
||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ImageMagick\\Current;BinPath]/lib"
|
||||
DOC "Path to the ImageMagick Magick++ library."
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
# old version have only indep dir
|
||||
|
Loading…
x
Reference in New Issue
Block a user