1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 08:51:52 +08:00

VS: Add basic infrastructure for CUDA generation

Generate the `CudaCompile` elements in `.vcxproj` files.
This commit is contained in:
Brad King
2017-03-07 15:59:33 -05:00
parent 041ebda25b
commit b64b4629ea
4 changed files with 112 additions and 0 deletions

View File

@@ -299,6 +299,9 @@ void cmVisualStudioGeneratorOptions::OutputPreprocessorDefinitions(
return;
}
const char* tag = "PreprocessorDefinitions";
if (lang == "CUDA") {
tag = "Defines";
}
if (this->Version >= cmGlobalVisualStudioGenerator::VS10) {
// if there are configuration specific flags, then
// use the configuration specific tag for PreprocessorDefinitions