Merge topic 'VS10-PrecompiledHeader-default'

f0ae381 VS: Disable precompiled headers unless enabled by project (#12930)
This commit is contained in:
David Cole 2012-08-24 14:24:58 -04:00 committed by CMake Topic Stage
commit 38876a3903
1 changed files with 1 additions and 0 deletions

View File

@ -1205,6 +1205,7 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
// Get preprocessor definitions for this directory.
std::string defineFlags = this->Target->GetMakefile()->GetDefineFlags();
clOptions.FixExceptionHandlingDefault();
clOptions.AddFlag("PrecompiledHeader", "NotUsing");
clOptions.Parse(flags.c_str());
clOptions.Parse(defineFlags.c_str());
clOptions.AddDefines