diff options
author | Brad King <brad.king@kitware.com> | 2017-03-07 20:59:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:56 (GMT) |
commit | b64b4629ea8aa669d652ffb32fe7a7336bd8ea8c (patch) | |
tree | c47630b950558eba7f1883109e6e6caad6e163bc /Source/cmVisualStudioGeneratorOptions.cxx | |
parent | 041ebda25bef6c142ac80135b0b59d88acbc0f1f (diff) | |
download | CMake-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.cxx | 3 |
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 |