mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 13:48:33 -05:00
5e931c5a97
The original regular expression was greedy and would match any environment variable ending with `TOP` (like `DESKTOP`). This is an issue on windows where `nvcc -v` would output all environment variables before the compiler's verbose output. To resolve this issue we use a tighter match algorithm that looks for `#$ TOP=` instead of `TOP=`. Fixes: #22158
86 KiB
86 KiB