Explorar el Código

FindImageMagick: fix fail if no components were given

The variable name should be added to the list here, not the content.
Rolf Eike Beer hace 14 años
padre
commit
518f965bba
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Modules/FindImageMagick.cmake

+ 1 - 1
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)