52 lines
2.2 KiB
Diff
52 lines
2.2 KiB
Diff
diff -up cmake-2.8.11-rc1/Modules/FindImageMagick.cmake.IM_pkgconfig_hints cmake-2.8.11-rc1/Modules/FindImageMagick.cmake
|
|
--- cmake-2.8.11-rc1/Modules/FindImageMagick.cmake.IM_pkgconfig_hints 2013-03-16 20:17:26.927416851 -0500
|
|
+++ cmake-2.8.11-rc1/Modules/FindImageMagick.cmake 2013-03-16 20:22:10.797867982 -0500
|
|
@@ -77,11 +77,16 @@ find_package(PkgConfig)
|
|
function(FIND_IMAGEMAGICK_API component header)
|
|
set(ImageMagick_${component}_FOUND FALSE PARENT_SCOPE)
|
|
|
|
+ pkg_check_modules(PC_${component} QUIET ${component})
|
|
+
|
|
find_path(ImageMagick_${component}_INCLUDE_DIR
|
|
NAMES ${header}
|
|
PATHS
|
|
${ImageMagick_INCLUDE_DIRS}
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ImageMagick\\Current;BinPath]/include"
|
|
+ HINTS
|
|
+ ${PC_${component}_INCLUDEDIR}
|
|
+ ${PC_${component}_INCLUDE_DIRS}
|
|
PATH_SUFFIXES
|
|
ImageMagick
|
|
DOC "Path to the ImageMagick include dir."
|
|
@@ -90,6 +95,9 @@ function(FIND_IMAGEMAGICK_API component
|
|
NAMES ${ARGN}
|
|
PATHS
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\ImageMagick\\Current;BinPath]/lib"
|
|
+ HINTS
|
|
+ ${PC_${component}_LIBDIR}
|
|
+ ${PC_${component}_LIB_DIRS}
|
|
DOC "Path to the ImageMagick Magick++ library."
|
|
)
|
|
|
|
@@ -149,17 +157,17 @@ foreach(component ${ImageMagick_FIND_COM
|
|
)
|
|
if(component STREQUAL "Magick++")
|
|
FIND_IMAGEMAGICK_API(Magick++ Magick++.h
|
|
- Magick++ CORE_RL_Magick++_ Magick++-Q16 Magick++-Q8
|
|
+ Magick++ CORE_RL_Magick++_ Magick++-6.Q16 Magick++-Q16 Magick++-6.Q8 Magick++-Q8
|
|
)
|
|
list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_Magick++_LIBRARY)
|
|
elseif(component STREQUAL "MagickWand")
|
|
FIND_IMAGEMAGICK_API(MagickWand wand/MagickWand.h
|
|
- Wand MagickWand CORE_RL_wand_ MagickWand-Q16 MagickWand-Q8
|
|
+ Wand MagickWand CORE_RL_wand_ MagickWand-6.Q16 MagickWand-Q16 MagickWand-6.Q8 MagickWand-Q8
|
|
)
|
|
list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickWand_LIBRARY)
|
|
elseif(component STREQUAL "MagickCore")
|
|
FIND_IMAGEMAGICK_API(MagickCore magick/MagickCore.h
|
|
- Magick MagickCore CORE_RL_magick_ MagickCore-Q16 MagickCore-Q8
|
|
+ Magick MagickCore CORE_RL_magick_ MagickCore-6.Q16 MagickCore-Q16 MagickCore-6.Q8 MagickCore-Q8
|
|
)
|
|
list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickCore_LIBRARY)
|
|
else()
|