Hello everyone,
I encountered some problems when I tried to setup a CUDA project in CMake. 
My first line of code in the CMakeLists.txt file is find_package(CUDA).
when I run the CMake with this file, I get the following error in the command 
line:








CMake Error at 
/Applications/CMake.app/Contents/share/cmake-3.0/Modules/FindCUDA.cmake:605 
(if):
  if given arguments:


    "CUDA_VERSION" "VERSION_GREATER" "5.0" "AND" "CMAKE_CROSSCOMPILING" "AND" 
"MATCHES" "arm" "AND" "EXISTS" "/usr/local/cuda/targets/armv7-linux-gnueabihf"


  Unknown arguments specified
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)




-- Configuring incomplete, errors occurred!
At the location "/usr/local/cuda" are aliases the folders of my cuda 
installation. The folder targets is not present there. 
I running OSX Mavericks on a MacBook Pro mid 2009 with the latest cuda driver 
and toolkit. 
I am guessing that one of the arguments passed in line 605 of the find cuda 
files is not set prior to this line. But I don't know which one.
Help is appreciated!
Best,
Ben

                                          
-- 

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

Reply via email to