diff options
author | Brad King <brad.king@kitware.com> | 2012-08-22 12:50:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-08-22 12:57:10 (GMT) |
commit | f0ae381c73dd2b421cb7df407152ad4498428fc2 (patch) | |
tree | f512e222405b61a4083474dd9ca6f01cf986adb0 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 4c9ae472ecb1a2b8e8ce0b115d0f54bf5f875fb1 (diff) | |
download | CMake-f0ae381c73dd2b421cb7df407152ad4498428fc2.zip CMake-f0ae381c73dd2b421cb7df407152ad4498428fc2.tar.gz CMake-f0ae381c73dd2b421cb7df407152ad4498428fc2.tar.bz2 |
VS: Disable precompiled headers unless enabled by project (#12930)
In VS 11 the WindowsAppContainer element enabled by the
VS_WINRT_EXTENSIONS property activates precompiled header support
automatically if no PrecompiledHeader setting is specified. For VS 10 and
11 set PrecompiledHeader to "NotUsing" explicitly by default unless
overridden by a project-specified flag.
Suggested-by: Eugene Golushkov <eugene_gff@ukr.net>
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 6626e5b..2442841 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1219,6 +1219,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 |