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

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