[cmake-developers] patch for FindCUDA.cmake

Mark Abraham mark.j.abraham at gmail.com
Sun Jan 4 08:47:46 EST 2015


Hi,

The FindCUDA.cmake module since v3.0 has had a bug because it assumes that
when cross compiling that CMAKE_SYSTEM_PROCESSOR will be defined. That
definition is documented as optional at
http://www.vtk.org/Wiki/CMake_Cross_Compiling, and the module can't work if
it happens to be undefined. Attached patch
wraps the uses of CMAKE_SYSTEM_PROCESSOR in quotes so that interpolation
will lead to the intended behaviour in all cases.

I haven't filed a bug report, per
http://www.cmake.org/Wiki/CMake_FAQ#I_found_a_Bug.21_What_should_I_do.3F

Thanks,

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150104/296900d8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-FindCUDA.cmake-assumption-about-cross-compiling.patch
Type: text/x-patch
Size: 1788 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150104/296900d8/attachment-0001.bin>


More information about the cmake-developers mailing list