FindCUDA: Found non-existent CUDA 9. 1 include directory but not the existent CUDA 9.2
I'm trying to compile a program with CUDA 9.2 on Ubuntu 16.04. Therefore, my CMake-file requires CUDA 9.2 with the command
find_package(CUDA 9.2 REQUIRED)
My CUDA installation is under /usr/local/cuda-9.2. This folder and /usr/local/cuda-9.2/bin are added to PATH for my user. However, when I try to execute the CMake-file, I get the following error message:
Could NOT find CUDA: Found unsuitable version "9.1", but required is at least "9.2" (found /usr/local/cuda-9.1)
Funnily enough there is no directory /usr/local/cuda-9.1.
CMake: 3.12.0
CUDA: 9.2
Ubuntu: 16.04 (64 bit)
Edited by Brad King