I am currently using Visual studios 2019 with CUDA. However, when I create or open any CUDA file things are underlined in red and marked as "errors" when in reality everything works perfectly fine and the compiler throws no errors. For example:
Is there a way to add CUDA's compiler, nvcc, to visual studios so I won't get these annoying error messages? Or is this completely impossible and something I have to live with? Also, if it helps I am using CMake with the Ninja compiler.