CUDA/Clang: "No rule to make target" with clang++-12
After setting clang++-12
as the CUDA compiler, the build after CMake configuration produces an error like:
make[2]: *** No rule to make target 'CMakeFiles/cudalink_exe.dir/exe2.cpp.o', needed by 'CMakeFiles/cudalink_exe.dir/sm_75.cubin'. Stop.
A reproducer is attached: cmake_clang_cuda.tar.gz
CMake version: 3.21.0 CUDA version: 11.4 Clang version: 12.0.1 OS: Ubuntu 20.04