Link time error; with -fopenmp-targets=nvptx64

This trivial code:
int main() {}

does not compile if I add the -fopenmp-targets=nvptx64 like below:

$ clang++ -fopenmp -fopenmp-targets=nvptx64 test.cpp
clang-13: warning: Unknown CUDA version. version.txt: 11.0.228.
Assuming the latest supported version 10.1 [-Wunknown-cuda-version]
undefined reference to `std::_Sp_make_shared_tag::_S_eq(std::type_info
clang-13: error: linker command failed with exit code 1 (use -v to see

I am on the latest main.

I was not setting the CMake option properly, -DGCC_INSTALL_PREFIX
where a build depends on GCC.