NVHPC: Support Ninja dependency scanning

Fixes: #22168
2 files changed