FindImageMagick: fix fail if no components were given
The variable name should be added to the list here, not the content.
This commit is contained in:
parent
00daeff02b
commit
518f965bba
|
@ -171,7 +171,7 @@ FOREACH(component ${ImageMagick_FIND_COMPONENTS}
|
||||||
ELSEIF(ImageMagick_${component}_EXECUTABLE)
|
ELSEIF(ImageMagick_${component}_EXECUTABLE)
|
||||||
# if no components were requested explicitly put all (default) executables
|
# if no components were requested explicitly put all (default) executables
|
||||||
# in the list
|
# in the list
|
||||||
LIST(APPEND ImageMagick_DEFAULT_EXECUTABLES "${ImageMagick_${component}_EXECUTABLE}")
|
LIST(APPEND ImageMagick_DEFAULT_EXECUTABLES ImageMagick_${component}_EXECUTABLE)
|
||||||
ENDIF(ImageMagick_FIND_COMPONENTS)
|
ENDIF(ImageMagick_FIND_COMPONENTS)
|
||||||
ENDIF(component STREQUAL "Magick++")
|
ENDIF(component STREQUAL "Magick++")
|
||||||
ENDFOREACH(component)
|
ENDFOREACH(component)
|
||||||
|
|
Loading…
Reference in New Issue