[cmake-developers] patch for FindCUDA.cmake

Rolf Eike Beer eike at sf-mail.de
Sun Jan 4 09:02:23 EST 2015


Mark Abraham wrote:
> 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.

The easier and better fix would be to just remove the dereference, i.e.

if (… CMAKE_SYSTEM_PROCESSOR MATCHES arm …)

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150104/df38968c/attachment.sig>


More information about the cmake-developers mailing list