summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-07 20:59:33 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-10 15:19:56 (GMT)
commitb64b4629ea8aa669d652ffb32fe7a7336bd8ea8c (patch)
treec47630b950558eba7f1883109e6e6caad6e163bc /Source/cmVisualStudioGeneratorOptions.cxx
parent041ebda25bef6c142ac80135b0b59d88acbc0f1f (diff)
downloadCMake-b64b4629ea8aa669d652ffb32fe7a7336bd8ea8c.zip
CMake-b64b4629ea8aa669d652ffb32fe7a7336bd8ea8c.tar.gz
CMake-b64b4629ea8aa669d652ffb32fe7a7336bd8ea8c.tar.bz2
VS: Add basic infrastructure for CUDA generation
Generate the `CudaCompile` elements in `.vcxproj` files.
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 3007f14..125d2c4 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -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