Merge topic 'fix-findimagemagick-no-components'

518f965 FindImageMagick: fix fail if no components were given
This commit is contained in:
David Cole 2012-03-02 11:47:11 -05:00 committed by CMake Topic Stage
commit b930798042
1 changed files with 1 additions and 1 deletions

View File

@ -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)