diff options
author | Raul Tambre <raul@tambre.ee> | 2020-06-05 12:04:23 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-06-05 12:04:23 (GMT) |
commit | 4eaf1ef4257de10ad8711df77510ceda93f6ccff (patch) | |
tree | c41a91b1f216af088e2b241aa8be40084626468b /Modules/BasicConfigVersion-SameMajorVersion.cmake.in | |
parent | 4af04586303da6fe0755423728c979aa8c84c301 (diff) | |
download | CMake-4eaf1ef4257de10ad8711df77510ceda93f6ccff.zip CMake-4eaf1ef4257de10ad8711df77510ceda93f6ccff.tar.gz CMake-4eaf1ef4257de10ad8711df77510ceda93f6ccff.tar.bz2 |
CUDA: Fix checking working architectures with specifiers
We don't distinguish real/virtual architectures during compiler detection.
If the user passes -DCMAKE_CUDA_ARCHITECTURES="70-virtual" we'll test with only
the real architecture.
If it works "architectures" will end up as "70". We check equality using
strings, so this fails and we incorrectly throw an error.
Fix this by comparing against CMAKE_CUDA_ARCHITECTURES with the specifiers
stripped.
We need to deduplicate tested_architectures for the same reason in case the
user specified something like "70-real;70-virtual".
Diffstat (limited to 'Modules/BasicConfigVersion-SameMajorVersion.cmake.in')
0 files changed, 0 insertions, 0 deletions