mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
VS: Do not pass CUDA compile options to C compiler
This commit is contained in:
@@ -2235,8 +2235,10 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
|
|||||||
if (linkLanguage == "CXX") {
|
if (linkLanguage == "CXX") {
|
||||||
clOptions.AddFlag("CompileAs", "CompileAsCpp");
|
clOptions.AddFlag("CompileAs", "CompileAsCpp");
|
||||||
}
|
}
|
||||||
this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
|
if (linkLanguage != "CUDA") {
|
||||||
linkLanguage, configName.c_str());
|
this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
|
||||||
|
linkLanguage, configName.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
// Get preprocessor definitions for this directory.
|
// Get preprocessor definitions for this directory.
|
||||||
std::string defineFlags =
|
std::string defineFlags =
|
||||||
|
|||||||
Reference in New Issue
Block a user