CUDA: CMakeDetermineCudaCompiler fails with ...TOP= env vars
Hi,
I'm running CMake 3.20 on windows 10 and I've found that if I have an environment variable ending with TOP
(like DESKTOP
) CMakeDetermineCUDACompiler
fails to determine the compiler, I've found the culprit to be CMakeDetermineCUDACompiler.cmake:184
, if the regex is switched to ^TOP=([^\r\n]*)
instead of current TOP=([^\r\n]*)
the detection works correctly. I've found other usages of the MATCH "TOP..."
in other CUDA related files so they might be worth a look as well.
Edited by Brad King