<div dir="ltr"><div>Hi all,</div><div><br></div><div>So this question is again about project(foo LANGUAGES CXX CUDA). Is it possible to switch off CUDA if Cmake couldn't find CUDA compiler? I.e. something along the line:</div><div><br></div><div>if (CUDA_FOUND)</div><div>  set_language_to_CUDA_and_CXX</div><div>else(CUDA_FOUND)</div><div>  set_language_to_CXX_only</div><div>endif(CUDA_FOUND)</div><div><br></div><div>The main reason is I don't want CMake to fail when CUDA compiler isn't available. Rather, it should continue to compile the source files using CPP compilers instead.</div><div><br></div><div>Thanks,</div><div>Quang<br></div></div>