MantisBT - CMake
View Issue Details
0010326CMakeCMakepublic2010-02-23 11:092011-04-04 12:00
Luis Kornblueh 
David Cole 
normalminorhave not tried
closedwon't fix 
CMake-2-8 
CMake 2.8.4 
0010326: Wrong architecture for CMAKE_SYSTEM_PROCESSOR
CMAKE_SYSTEM_PROCESSOR returns always i386 on MacOSX 10.6.x. But running on a MacPro I expect x86_64.

Testing the output of uname:
MacBookPro:
feilung% uname -p feilung% uname -m
i386 i386
MacPro:
wanglung% uname -p wanglung% uname -m
i386 x86_64
It seems uname -p is returned, but uname -m would be nicer ...

No tags attached.
related to 0010037closed Kitware Robot SystemInformation.cxx is missing implementations for many functions on Win64 builds 
Issue History
2010-02-23 11:09Luis KornbluehNew Issue
2010-03-26 17:52R WackerbarthNote Added: 0020019
2010-12-15 07:29David ColeAssigned To => David Cole
2010-12-15 07:29David ColeStatusnew => assigned
2010-12-15 07:34David ColeNote Added: 0024137
2010-12-15 07:34David ColeStatusassigned => resolved
2010-12-15 07:34David ColeFixed in Version => CMake 2.8.4
2010-12-15 07:34David ColeResolutionopen => won't fix
2010-12-15 07:37David ColeRelationship addedrelated to 0010037
2011-04-04 12:00David ColeNote Added: 0026058
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0020019)
R Wackerbarth   
2010-03-26 17:52   
This distinction does not seem to hold for Snow Leopard

richard:Experimental rkw$ uname -a
Darwin richard.nfsnet 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
richard:Experimental rkw$ uname -p
i386
richard:Experimental rkw$ uname -m
i386

Hardware Overview:

  Model Name: Mac Pro
  Model Identifier: MacPro1,1
  Processor Name: Dual-Core Intel Xeon
  Processor Speed: 2.66 GHz
  Number Of Processors: 2
  Total Number Of Cores: 4
  L2 Cache (per processor): 4 MB
  Memory: 8 GB
  Bus Speed: 1.33 GHz
  Boot ROM Version: MP11.005D.B00
  SMC Version (system): 1.7f10
(0024137)
David Cole   
2010-12-15 07:34   
The documentation for CMAKE_SYSTEM_PROCESSOR clearly states that uname -p is used to determine its value:

http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SYSTEM_PROCESSOR [^]

In these days of universal binaries and cross-compiling, it is not meant to be used for anything other than a "best guess" about what your targets' primary architecture is going to be...

If you must have some other value, then use some other means to get it. CMAKE_SYSTEM_PROCESSOR is set to the output of "uname -p"
(0026058)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.