From: unknown Date: Mon, 13 Feb 2012 19:06:21 +0000 (+0100) Subject: Fix detection of x86 processor for nsis X-Git-Tag: exp_20120216~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8205b9203eb3f2098cd7dcbd8e72d26b7977915a?hp=ed5a340afeaa90fd0964b0fae5e538496433d2ec Fix detection of x86 processor for nsis --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ab7004ea06..aa4fb63171 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)