Merge topic 'VS10-PrecompiledHeader-default'
f0ae381
VS: Disable precompiled headers unless enabled by project (#12930)
This commit is contained in:
commit
38876a3903
|
@ -1205,6 +1205,7 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
|
||||||
// Get preprocessor definitions for this directory.
|
// Get preprocessor definitions for this directory.
|
||||||
std::string defineFlags = this->Target->GetMakefile()->GetDefineFlags();
|
std::string defineFlags = this->Target->GetMakefile()->GetDefineFlags();
|
||||||
clOptions.FixExceptionHandlingDefault();
|
clOptions.FixExceptionHandlingDefault();
|
||||||
|
clOptions.AddFlag("PrecompiledHeader", "NotUsing");
|
||||||
clOptions.Parse(flags.c_str());
|
clOptions.Parse(flags.c_str());
|
||||||
clOptions.Parse(defineFlags.c_str());
|
clOptions.Parse(defineFlags.c_str());
|
||||||
clOptions.AddDefines
|
clOptions.AddDefines
|
||||||
|
|
Loading…
Reference in New Issue