Am Montag, 5. Januar 2015, 00:22:51 schrieb Mark Abraham:
> On Sun, Jan 4, 2015 at 3:02 PM, Rolf Eike Beer <e...@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 …)

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

Fix pushed to next: 
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=52d4ff49d973d77dba480e0b60b08c6c70e94538

Brad, it is based on release in case you want to pick it for 3.1.1.

Eike

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to