CUDA: Ninja generator generates valid compile database
requested to merge robertmaynard/cmake:ninja_compile_database_understand_new_cuda_lang_variables into master
The ninja generator has been updated to poperly write the compile database when the CUDA language has been enabled.
Fixes: #23368 (closed)
Backport: release
Edited by Brad King