NVIDIA SDK on VSCode with CMake and OpenMP

Hello,

Has anyone tried setting up VScode, cmake-tools with the nvidia SDK?

I had a c++ project well setup with cmake, GCC, and openmp. After installing HPC SDK and setting up the nvcc and nvc++ compilers, when I switch the tools, the build is failing complaining about openMP. By default VScode is using nvcc -fopenmp -v -fPIE -std=gnu99 -o outputfile.o. I know it is just a simple addition of -Xcompiler flag. But how do I set that up in vscode?

Below is the exact error I am getting:

/opt/nvidia/hpc_sdk/Linux_x86_64/22.5/compilers/bin/nvcc -fopenmp -v -fPIE -std=gnu99 -o CMakeFiles/cmTC_568be.dir/OpenMPTryFlag.c.o -c /directory/program/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.c
nvcc fatal : Value ‘gnu99’ is not defined for option ‘std’

Any help is would be appreciated!