diff Resources/CMake/DownloadPackage.cmake @ 1111:929bf8c2123d

Fixes for Visual Studio 2013 64bit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 01 Sep 2014 11:23:13 +0200
parents ee0d5abf7958
children fbf763bb1fa3
line wrap: on
line diff
--- a/Resources/CMake/DownloadPackage.cmake	Mon Sep 01 11:11:00 2014 +0200
+++ b/Resources/CMake/DownloadPackage.cmake	Mon Sep 01 11:23:13 2014 +0200
@@ -15,7 +15,12 @@
 ##
 
 if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
-  find_program(ZIP_EXECUTABLE 7z PATHS "$ENV{ProgramFiles}/7-Zip")
+  find_program(ZIP_EXECUTABLE 7z 
+    PATHS 
+    "$ENV{ProgramFiles}/7-Zip"
+    "$ENV{ProgramW6432}/7-Zip"
+    )
+
   if (${ZIP_EXECUTABLE} MATCHES "ZIP_EXECUTABLE-NOTFOUND")
     message(FATAL_ERROR "Please install the '7-zip' software (http://www.7-zip.org/)")
   endif()