MantisBT - CMake
View Issue Details
0015147CMakeModulespublic2014-09-10 08:552015-03-02 08:57
Felix Geyer 
Brad King 
normalminoralways
closedfixed 
CMake 3.0.1 
CMake 3.1CMake 3.1 
0015147: CMAKE_HOST_SYSTEM_PROCESSOR not detected on GNU/Hurd
CMAKE_HOST_SYSTEM_NAME is "unknown" on Debian GNU/Hurd as uname -p prints "unknown".

"uname -m" works and returns i686-AT386.
I guess it's usually expected to be i[3-6]86 on x86 but changing what the OS reports doesn't seem like the right thing to do.

Attached is a patch that switches the uname call to "-m" like it does for Linux.
I opted for an exact match for "GNU" because there is also a Debian "GNU/kFreeBSD" architecture.
No tags attached.
diff host_system_processor_gnu.diff (580) 2014-09-10 08:55
https://public.kitware.com/Bug/file/5252/host_system_processor_gnu.diff
Issue History
2014-09-10 08:55Felix GeyerNew Issue
2014-09-10 08:55Felix GeyerFile Added: host_system_processor_gnu.diff
2014-09-10 09:09Brad KingNote Added: 0036771
2014-09-10 09:09Brad KingAssigned To => Brad King
2014-09-10 09:09Brad KingStatusnew => resolved
2014-09-10 09:09Brad KingResolutionopen => fixed
2014-09-10 09:09Brad KingFixed in Version => CMake 3.1
2014-09-10 09:09Brad KingTarget Version => CMake 3.1
2015-03-02 08:57Robert MaynardNote Added: 0038112
2015-03-02 08:57Robert MaynardStatusresolved => closed

Notes
(0036771)
Brad King   
2014-09-10 09:09   
Applied, thanks:

 Fix CMAKE_HOST_SYSTEM_PROCESSOR detection on GNU/Hurd
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=89d7a5a4 [^]
(0038112)
Robert Maynard   
2015-03-02 08:57   
Closing resolved issues that have not been updated in more than 4 months.