[cmake-developers] patch for FindCUDA.cmake

Mark Abraham mark.j.abraham at gmail.com
Sun Jan 4 18:22:51 EST 2015


On Sun, Jan 4, 2015 at 3:02 PM, Rolf Eike Beer <eike at sf-mail.de> wrote:

> 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 …)


Hi,

True, once you look at the minutae of if(... MATCHES ...) :-)

Updated patch attached.

Mark


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


More information about the cmake-developers mailing list