View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000426CMakepublic2003-12-10 15:282003-12-29 15:16
ReporterIan Scott 
Assigned ToBrad King 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000426: CMAKE_SYSTEM_PROCESSOR unknown and inconsistent
DescriptionThe CMAKE_SYSTEM_PROCESSOR variable as calculated by CMakeDetermineSystem.cmake has a value of x86 on my Windows box.

On my Linux box it has a value "unknown"
This is probably due to the fact that uname -p returns -p on my platform. arch and uname -m return "i686". This is apparently common in many distributions http://www.cs.helsinki.fi/linux/linux-kernel/2002-10/0512.html [^]
A solution would be to try uname -m if uname -p returns "unknown"

However, there is still a problem.
CMAKE_SYSTEM_PROCESSOR is not consistently named across platforms. It would be useful to pick a name scheme and fit everything into it.
I think it would preferable like to distinguish between a i386 and i686, etc. e.g. in order to switch in efficient MMX code.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0000417)
System Admin (reporter)
2003-12-29 14:27

Checking in Modules/CMakeDetermineSystem.cmake;
/cvsroot/CMake/CMake/Modules/CMakeDetermineSystem.cmake,v <-- CMakeDetermineSystem.cmake
new revision: 1.10; previous revision: 1.9
done
(0000420)
Brad King (manager)
2003-12-29 15:16

Fix has been merged to 1.8 branch for 1.8.3 release.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team