Sfoglia il codice sorgente

FindImageMagick: fix fail if no components were given

The variable name should be added to the list here, not the content.
Rolf Eike Beer 14 anni fa
parent
commit
518f965bba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Modules/FindImageMagick.cmake

+ 1 - 1
Modules/FindImageMagick.cmake

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