MantisBT - CMake
View Issue Details
0014342CMakeCMakepublic2013-08-06 23:112016-06-10 14:31
Craig Scott 
Kitware Robot 
normalmajoralways
closedmoved 
Windows64-bit7
CMake 2.8.11.2 
 
0014342: CMAKE_SYSTEM_PROCESSOR behaviour changed
The behaviour of the value of CMAKE_SYSTEM_PROCESSOR appears to have changed somewhere between 2.8.10.1 and 2.8.11.2. I build 32-bit apps on a 64-bit Windows 7 system and I use VS2008 (express version, no 64-bit compiler). With CMake 2.8.10.1, CMAKE_SYSTEM_PROCESSOR is reported to have the value x86, but with 2.8.11.2, now it has the value AMD64. I verified this with both versions of CMake and testing a trivial CMake project that simply prints the value of the variable.

According to the CMake documentation, on the one hand, the value should have always been AMD64 since the documentation says it just pulls the value from the PROCESSOR_ARCHITECTURE environment variable. On the other hand, this conflicts with the statement that it should reflect the target architecture. I think x86 would be the correct value here rather than simply reporting whatever PROCESSOR_ARCHITECTURE says, since that environment variable is not going to always match the target architecture.
No tags attached.
related to 0015170closed Kitware Robot CMAKE_SYSTEM_PROCESSOR is broken on Windows 
Issue History
2013-08-06 23:11Craig ScottNew Issue
2013-08-06 23:16Craig ScottNote Added: 0033676
2013-08-07 02:17Rolf Eike BeerNote Added: 0033677
2013-08-07 02:17Rolf Eike BeerSummaryCMAKE_SYSTEM_PROCESS behaviour changed => CMAKE_SYSTEM_PROCESSOR behaviour changed
2013-08-07 02:26Craig ScottNote Added: 0033678
2014-09-24 09:13Brad KingRelationship addedrelated to 0015170
2016-06-10 14:29Kitware RobotNote Added: 0042345
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0033676)
Craig Scott   
2013-08-06 23:16   
FYI, I'm using the NMake Makefiles generator with cmake/cmake-gui launched from the VS2008 command prompt shell.
(0033677)
Rolf Eike Beer   
2013-08-07 02:17   
Just out of curiosity: have you build the CMake version yourself and have build a 64 bit one?
(0033678)
Craig Scott   
2013-08-07 02:26   
Nope, I'm using the 32-bit pre-built binaries from Kitware's download area.
(0042345)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.