MantisBT - CMake
View Issue Details
0015274CMakeCMakepublic2014-12-01 14:352015-05-04 09:05
santa scrooge 
 
normalminoralways
closedno change required 
Ubuntu14.04 LTS
 
 
0015274: CMAKE_SYSTEM_PROCESSOR not working
if(CUDA_VERSION VERSION_GREATER "5.0" AND CMAKE_CROSSCOMPILING AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm" AND EXISTS "${CUDA_TOOLKIT_ROOT_DIR}/targets/armv7-linux- gnueabihf")

this is found in FindCUDA.cmake. It reports unspecified arguments. I check it by message() and found "CMAKE_SYSTEM_PROCESSOR" is empty.
No tags attached.
Issue History
2014-12-01 14:35santa scroogeNew Issue
2014-12-01 14:38Brad KingNote Added: 0037342
2014-12-03 10:18Brad KingStatusnew => resolved
2014-12-03 10:18Brad KingResolutionopen => no change required
2015-05-04 09:05Robert MaynardNote Added: 0038689
2015-05-04 09:05Robert MaynardStatusresolved => closed

Notes
(0037342)
Brad King   
2014-12-01 14:38   
When cross compiling it is the responsibility of the toolchain file to set CMAKE_SYSTEM_PROCESSOR for the target architecture.
(0038689)
Robert Maynard   
2015-05-04 09:05   
Closing resolved issues that have not been updated in more than 4 months.