FindImageMagick: Provide per-component _LIBRARIES variable

The `ImageMagick_<component>_LIBRARIES` result variable has long been
documented but was not actually provided.  Implement it, and document
the version that really adds it.
This commit is contained in:
Deniz Bahadir 2024-06-28 18:58:25 +02:00 committed by Brad King
parent 38884c1908
commit 9c30469af5

View File

@ -93,6 +93,8 @@ Result Variables
Compile options of <component>.
``ImageMagick_<component>_LIBRARIES``
.. versionadded:: 3.31
Full path to <component> libraries.
@ -168,6 +170,12 @@ function(FIND_IMAGEMAGICK_API component header)
set(ImageMagick_${component}_INCLUDE_DIRS
${ImageMagick_${component}_INCLUDE_DIRS} PARENT_SCOPE)
set(ImageMagick_${component}_LIBRARIES
${ImageMagick_${component}_LIBRARY}
)
set(ImageMagick_${component}_LIBRARIES
${ImageMagick_${component}_LIBRARIES} PARENT_SCOPE)
set(ImageMagick_${component}_COMPILE_OPTIONS ${PC_${component}_CFLAGS_OTHER})
# Add the per-component include directories to the full include dirs.