[cmake-developers] Spurious warning with FindCUDA.cmake on Windows
Sorley, Stephen L.
Stephen.Sorley at jhuapl.edu
Fri Jul 22 18:08:19 EDT 2016
Found a minor problem with FindCUDA.cmake on the master branch. When using FindCUDA.cmake on Windows with CUDA SDK version 6.5 or older, CMake prints the following warning:
CMake Warning at cmake/FindCUDA.cmake:826 (message):
Expecting to find librt for libcudart_static, but didn't find it.
Call Stack (most recent call first):
cmake/build_setup.cmake:693 (find_package)
CMakeLists.txt:42 (include)
This warning is incorrect, since librt is only present on Linux. I've attached a patch (based on master) that fixes the problem.
Thanks!
Stephen S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160722/35c0ce59/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-for-spurious-CMake-warning-message-on-Windows.patch
Type: application/octet-stream
Size: 994 bytes
Desc: 0001-Fix-for-spurious-CMake-warning-message-on-Windows.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160722/35c0ce59/attachment.obj>
More information about the cmake-developers
mailing list