Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix detection of x86 processor for nsis
[simgrid.git] / CMakeLists.txt
index ab7004e..aa4fb63 100644 (file)
@@ -163,6 +163,9 @@ if(WIN32)
     endif(ARCH_32_BITS)
 
     set(NSIS_WIN_VERSION $ENV{PROCESSOR_ARCHITEW6432})
+    if(NSIS_WIN_VERSION MATCHES "")
+      set(NSIS_WIN_VERSION $ENV{PROCESSOR_ARCHITECTURE})
+    endif(NSIS_WIN_VERSION MATCHES "")
     string(TOLOWER ${NSIS_WIN_VERSION} NSIS_WIN_VERSION)
     
     set(_XBT_WIN32 1)