diff options
author | Brad King <brad.king@kitware.com> | 2018-04-13 16:38:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-13 16:56:36 (GMT) |
commit | 134e795fa968a06e289f1449b6ca4bf4702da03b (patch) | |
tree | 25014da053bc985cbbaebf673393bf21d184f3f1 /Tests/CudaOnly/PDB/check_pdbs.cmake | |
parent | 77705a2c2834e84a7413e01e5575201d1730b57a (diff) | |
download | CMake-134e795fa968a06e289f1449b6ca4bf4702da03b.zip CMake-134e795fa968a06e289f1449b6ca4bf4702da03b.tar.gz CMake-134e795fa968a06e289f1449b6ca4bf4702da03b.tar.bz2 |
VS: Add workaround for CUDA compiler PDB location
The CUDA Toolkit Visual Studio Integration does not honor the
`ClCompile.ProgramDataBaseFileName` field when telling `nvcc` how to
invoke `cl`. Work around this problem by passing `-Xcompiler=-Fd...`
ourselves through `AdditionalOptions`.
Fixes: #17647
Diffstat (limited to 'Tests/CudaOnly/PDB/check_pdbs.cmake')
-rw-r--r-- | Tests/CudaOnly/PDB/check_pdbs.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CudaOnly/PDB/check_pdbs.cmake b/Tests/CudaOnly/PDB/check_pdbs.cmake new file mode 100644 index 0000000..5e01ca7 --- /dev/null +++ b/Tests/CudaOnly/PDB/check_pdbs.cmake @@ -0,0 +1,10 @@ +if(NOT "${config}" MATCHES "[Dd][Ee][Bb]") + return() +endif() +foreach(pdb ${pdbs}) + if(EXISTS "${pdb}") + message(STATUS "PDB Exists: ${pdb}") + else() + message(SEND_ERROR "PDB MISSING:\n ${pdb}") + endif() +endforeach() |