<div dir="ltr">FindCUDA doesn't look for a specific version, but rather checks to see if the version it found is the one you asked for.  You can set the CUDA_TOOLKIT_ROOT_DIR to the one you want (and reconfigure - I've set it up to easily change this), or you can change your environment in Windows to point to the default version of CUDA you want (CUDA_PATH).<div><br></div><div>It would be nice if it could search about and find an appropriate version.<br><div><br></div><div>James</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 2:12 PM, Wesley Smith <span dir="ltr"><<a href="mailto:wesley.hoke@gmail.com" target="_blank">wesley.hoke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I'm trying to use Cmake 3.2.2 to build with Cuda7 on Windows 8. I have<br>
both Cuda 6.5 and Cuda 7.0 installed in these locations:<br>
<br>
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5<br>
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.0<br>
<br>
When I try these:<br>
<br>
find_package(CUDA "7.0" REQUIRED)<br>
find_package(CUDA 7.0 REQUIRED)<br>
find_package(CUDA 7 REQUIRED)<br>
<br>
<br>
(just shooting in the dark here to see if something will work)<br>
<br>
I always get the error<br>
<br>
CMake Error at C:/Program Files<br>
(x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138<br>
(message):<br>
Could NOT find CUDA: Found unsuitable version "6.5", but required is at<br>
least "7.0" (found C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5)<br>
Call Stack (most recent call first):<br>
C:/Program Files<br>
(x86)/CMake/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:372<br>
(_FPHSA_FAILURE_MESSAGE)<br>
C:/Program Files<br>
(x86)/CMake/share/cmake-3.2/Modules/FindCUDA.cmake:939<br>
(find_package_handle_standard_args)<br>
CMakeLists.txt:122 (find_package)<br>
<br>
<br>
Any ideas?<br>
<br>
thanks,<br>
wes<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>