changeset 75:8b1428915a46

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Sep 2012 16:31:30 +0200
parents 09718f2fc5cb
children e2d68529605f
files Resources/CMake/DownloadPackage.cmake
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Resources/CMake/DownloadPackage.cmake	Mon Sep 17 16:27:25 2012 +0200
+++ b/Resources/CMake/DownloadPackage.cmake	Mon Sep 17 16:31:30 2012 +0200
@@ -59,7 +59,7 @@
 
       if (("${TMP_EXTENSION}" STREQUAL "gz") OR ("${TMP_EXTENSION}" STREQUAL "tgz"))
         execute_process(
-          COMMAND ${ZIP_EXECUTABLE} e ${TMP_PATH}
+          COMMAND ${ZIP_EXECUTABLE} e -y ${TMP_PATH}
           WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
           RESULT_VARIABLE Failure
           OUTPUT_QUIET
@@ -81,7 +81,7 @@
 
         if (TMP_LENGTH EQUAL 0)
           execute_process(
-            COMMAND ${ZIP_EXECUTABLE} x ${TMP_FILENAME2}
+            COMMAND ${ZIP_EXECUTABLE} x -y ${TMP_FILENAME2}
             WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
             RESULT_VARIABLE Failure
             OUTPUT_QUIET
@@ -89,7 +89,7 @@
         else()
           foreach(SUBDIR ${ARGS})
             execute_process(
-              COMMAND ${ZIP_EXECUTABLE} x "-i!${SUBDIR}" "${TMP_FILENAME2}"
+              COMMAND ${ZIP_EXECUTABLE} x -y "-i!${SUBDIR}" "${TMP_FILENAME2}"
               WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
               RESULT_VARIABLE Failure
               OUTPUT_QUIET
@@ -102,7 +102,7 @@
         endif()
       elseif ("${TMP_EXTENSION}" STREQUAL "zip")
         execute_process(
-          COMMAND ${ZIP_EXECUTABLE} x ${TMP_PATH}
+          COMMAND ${ZIP_EXECUTABLE} x -y ${TMP_PATH}
           WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
           RESULT_VARIABLE Failure
           OUTPUT_QUIET