On Friday 22 February 2013 12:23:23 Koller, Martin wrote:
> I propose the attached patch for CMakeDetermineSystem.cmake
> Can someone add this to the mentioned mantis bug entry or shall I create a
> new one ?
Revised patch which ignores the case of "amd64" so that "AMD64" works as well
--
Best regards/Schöne Grüße
Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
This mail was not scanned before sending.
It was sent from a secure Linux desktop.
--- CMakeDetermineSystem.cmake.orig 2013-02-22 12:08:09.173459353 +0100
+++ CMakeDetermineSystem.cmake 2013-02-22 18:43:36.138453625 +0100
@@ -73,7 +73,15 @@
else()
if(CMAKE_HOST_WIN32)
set (CMAKE_HOST_SYSTEM_NAME "Windows")
- set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
+ # http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspx
+ string(TOLOWER "$ENV{PROCESSOR_ARCHITECTURE}" arch)
+ string(TOLOWER "$ENV{PROCESSOR_ARCHITEW6432}" archw)
+
+ if((${arch} STREQUAL "amd64") OR (${archw} STREQUAL "amd64"))
+ set (CMAKE_HOST_SYSTEM_PROCESSOR "amd64")
+ else()
+ set (CMAKE_HOST_SYSTEM_PROCESSOR "x86")
+ endif()
endif()
endif()
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake