mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user