[cmake-developers] Bugfix: Default behavior of CUDA_USE_STATIC_CUDA_RUNTIME

Sorley, Stephen L. Stephen.Sorley at jhuapl.edu
Thu Aug 11 15:37:21 EDT 2016


Recent changes to FindCUDA.cmake (commit 7229ae7) broke the documented behavior of the CUDA_USE_STATIC_CUDA_RUNTIME option.  Per the documentation, this option should be enabled by default if libcudart_static is present in the selected version of CUDA, and silently disabled if it's not.  After commit 7229ae7, the option is disabled by default instead.

I've attached a small patch (based on master) that fixes the problem.

Thanks!
Stephen Sorley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160811/a125d3f9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Restore-default-behavior-of-CUDA_USE_STATIC_CUDA_RUN.patch
Type: application/octet-stream
Size: 1648 bytes
Desc: 0001-Restore-default-behavior-of-CUDA_USE_STATIC_CUDA_RUN.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160811/a125d3f9/attachment.obj>


More information about the cmake-developers mailing list