diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2021-05-06 15:23:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-06 16:08:24 (GMT) |
commit | 5e931c5a97380cea3989084007aed3e797fc4438 (patch) | |
tree | 416ddfb8d867d9593c264cd2145a7534d7d942ec /Tests/CTestTestSubdir/CMakeLists.txt | |
parent | 1ad4501ae97fb6c6deab096ff0ac7e03d554e26d (diff) | |
download | CMake-5e931c5a97380cea3989084007aed3e797fc4438.zip CMake-5e931c5a97380cea3989084007aed3e797fc4438.tar.gz CMake-5e931c5a97380cea3989084007aed3e797fc4438.tar.bz2 |
CUDA: improve regex for CUDA Toolkit root from nvcc verbose output
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
Diffstat (limited to 'Tests/CTestTestSubdir/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions