summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-02 16:47:11 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-03-02 16:47:11 (GMT)
commitb930798042412bf0db7fff8ab4d41ad6f48642f5 (patch)
tree12f926e9847657f97d5da3367108af5fda198a38
parent2866819bdf7dcfdcf3a6155f6dcb637f9f5d51a0 (diff)
parent518f965bbabf6678a3fc03948c38bc78e48cfdc3 (diff)
downloadCMake-b930798042412bf0db7fff8ab4d41ad6f48642f5.zip
CMake-b930798042412bf0db7fff8ab4d41ad6f48642f5.tar.gz
CMake-b930798042412bf0db7fff8ab4d41ad6f48642f5.tar.bz2
Merge topic 'fix-findimagemagick-no-components'
518f965 FindImageMagick: fix fail if no components were given
-rw-r--r--Modules/FindImageMagick.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindImageMagick.cmake b/Modules/FindImageMagick.cmake
index 52d575b..0c890f5 100644
--- a/Modules/FindImageMagick.cmake
+++ b/Modules/FindImageMagick.cmake
@@ -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)