CMake/Tests/CudaOnly/PDB/check_pdbs.cmake
Brad King 134e795fa9 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
2018-04-13 12:56:36 -04:00

11 lines
226 B
CMake

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()