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:
Rolf Eike Beer 2012-02-27 17:25:24 +01:00
parent 00daeff02b
commit 518f965bba
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ FOREACH(component ${ImageMagick_FIND_COMPONENTS}
ELSEIF(ImageMagick_${component}_EXECUTABLE)
# if no components were requested explicitly put all (default) executables
# in the list
LIST(APPEND ImageMagick_DEFAULT_EXECUTABLES "${ImageMagick_${component}_EXECUTABLE}")
LIST(APPEND ImageMagick_DEFAULT_EXECUTABLES ImageMagick_${component}_EXECUTABLE)
ENDIF(ImageMagick_FIND_COMPONENTS)
ENDIF(component STREQUAL "Magick++")
ENDFOREACH(component)