summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-07 21:08:45 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-10 15:19:56 (GMT)
commit29f07b08671ea8a8cf2b32c6b740a2ecaa58168c (patch)
tree10adab173f41f8fbfed62b2cdffb1c78498e73aa /Source
parentb966f489c1b35cbc897720f1f9b68bd9b69175c7 (diff)
downloadCMake-29f07b08671ea8a8cf2b32c6b740a2ecaa58168c.zip
CMake-29f07b08671ea8a8cf2b32c6b740a2ecaa58168c.tar.gz
CMake-29f07b08671ea8a8cf2b32c6b740a2ecaa58168c.tar.bz2
VS: Do not pass CUDA compile options to C compiler
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index c4bcd41..ec39c8f 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2235,8 +2235,10 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
if (linkLanguage == "CXX") {
clOptions.AddFlag("CompileAs", "CompileAsCpp");
}
- this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
- linkLanguage, configName.c_str());
+ if (linkLanguage != "CUDA") {
+ this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
+ linkLanguage, configName.c_str());
+ }
// Get preprocessor definitions for this directory.
std::string defineFlags =