Trying to use FindCUDA.cmake out of the box, but get numerous compiling errors running cmake. Is there some additional step necessary beyond just checking it out from the repository?
someone@phenom:~/projects$ cmake --version
cmake version 2.6-patch 0
someone@phenom:~/projects$ svn co [url=“https://gforge.sci.utah.edu/svn/findcuda/trunk”]https://gforge.sci.utah.edu/svn/findcuda/trunk[/url] CMake-cuda
A CMake-cuda/CMake
A CMake-cuda/CMake/cuda
A CMake-cuda/CMake/cuda/make2cmake.cmake
A CMake-cuda/CMake/cuda/parse_cubin.cmake
A CMake-cuda/CMake/cuda/FindCUDA.cmake
A CMake-cuda/CMake/cuda/run_nvcc.cmake
A CMake-cuda/FindCuda.html
A CMake-cuda/LICENSE.txt
A CMake-cuda/src
A CMake-cuda/src/main_for_lib.cc
A CMake-cuda/src/external_dependency.h
A CMake-cuda/src/main.cc
A CMake-cuda/src/external_dependency3.h
A CMake-cuda/src/test_lib.cu
A CMake-cuda/src/CMakeLists.txt
A CMake-cuda/src/test_bin.cu
A CMake-cuda/CMakeLists.txt
Checked out revision 1152.
someone@phenom:~/projects$ cd CMake-cuda/
someone@phenom:~/projects/CMake-cuda$ cmake .
– The C compiler identification is GNU
– The CXX compiler identification is GNU
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
CMake Error at CMake/cuda/FindCUDA.cmake:412 (if):
if had incorrect arguments: CUDA_FIND_VERSION_EXACT AND NOT CUDA_VERSION
VERSION_EQUAL CUDA_FIND_VERSION (Unknown arguments specified).
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
CMake Error at CMake/cuda/FindCUDA.cmake:414 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
CMake Error at CMake/cuda/FindCUDA.cmake:416 (if):
if had incorrect arguments: CUDA_FIND_VERSION AND CUDA_VERSION VERSION_LESS
CUDA_FIND_VERSION (Unknown arguments specified).
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
CMake Error at CMake/cuda/FindCUDA.cmake:418 (endif):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
CMake Error at CMake/cuda/FindCUDA.cmake:423 (message):
Requested CUDA version , but found unacceptable version 2.2
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)
– Configuring done
someone@phenom:~/projects/CMake-cuda$