Compiling .cu using nvcc in cmake
<p>I have an opencv c++ script and I need to use cudamemcpy in it. So I used cudamemcpy in my script and saved the file as a .cu I am using cmake. So I added the .cu as a cuda_executable. But when I use "sudo make" I get the following error </p>

<p><a href="https://i.stack.imgur.com/fr1wf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fr1wf.png" alt="error I get"></a></p>

<p>This is the makefile
<a href="https://i.stack.imgur.com/EcjPU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EcjPU.png" alt="cmakelists.txt"></a></p>

<p>So in line 27 I changed c++0x to c++11 and I got the same error
so I tried gnu++11 but I still have the same error.</p>