cmake FindCUDA fail in cygwin environment

Hi,

I have a simple cuda application with only one cu file. The project is define using CMakeLists.txt, and the cmake works well if I execute cmake from cmd environment.

But if I invoke cmake in my cygwin environment, I got the following error:

– Could NOT find CUDA (missing: CUDA_CUDART_LIBRARY) (found version “7.5”)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_CUDART_LIBRARY (ADVANCED)
linked by target “hello_cuda” in directory /home/…

What is a “CUDA_CUDART_LIBRARY” variable? I can’t even find a reference to it.

i think compiling CUDA within the cygwin environment (GCC compiler, …) in windows doesnt’ work.
See
https://devtalk.nvidia.com/default/topic/375709/nvcc-w-cygwin-gcc-not-cl-how-to-use-cygwin-to-build-cuda-apps/

I suppose Visual STudio is the only compiler supported in windows by CUDA.