mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
VS: Do not pass CUDA compile options to C compiler
This commit is contained in:
parent
b966f489c1
commit
29f07b0867
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user