summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-22 12:50:50 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 12:57:10 (GMT)
commitf0ae381c73dd2b421cb7df407152ad4498428fc2 (patch)
treef512e222405b61a4083474dd9ca6f01cf986adb0 /Source/cmVisualStudio10TargetGenerator.cxx
parent4c9ae472ecb1a2b8e8ce0b115d0f54bf5f875fb1 (diff)
downloadCMake-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.cxx1
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