diff options
author | Brad King <brad.king@kitware.com> | 2017-03-07 21:08:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 15:19:56 (GMT) |
commit | 29f07b08671ea8a8cf2b32c6b740a2ecaa58168c (patch) | |
tree | 10adab173f41f8fbfed62b2cdffb1c78498e73aa /Source | |
parent | b966f489c1b35cbc897720f1f9b68bd9b69175c7 (diff) | |
download | CMake-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.cxx | 6 |
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 = |