summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-12-16 15:03:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-12-16 15:04:03 (GMT)
commitdfbe8109b4b6b495b2dc11fcc4687a282645382d (patch)
treeb71c82c457e90c0ba80b4f014c6d82197c322fe1 /Source/cmVisualStudio10TargetGenerator.cxx
parente3059f7bb48cf7435af26033868ada5030e18615 (diff)
parentc5c218fa0d00c0aa06bf51fafadd8e71f2c549fb (diff)
downloadCMake-dfbe8109b4b6b495b2dc11fcc4687a282645382d.zip
CMake-dfbe8109b4b6b495b2dc11fcc4687a282645382d.tar.gz
CMake-dfbe8109b4b6b495b2dc11fcc4687a282645382d.tar.bz2
Merge topic 'pch-force-include' into release-3.16
c5c218fa0d PCH: Append pch header file to list of forced include files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4135
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 5c0b881..53fc93c 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2399,6 +2399,9 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
clOptions.AppendFlag("DisableSpecificWarnings",
"%(DisableSpecificWarnings)");
}
+ if (clOptions.HasFlag("ForcedIncludeFiles")) {
+ clOptions.AppendFlag("ForcedIncludeFiles", "%(ForcedIncludeFiles)");
+ }
if (configDependentDefines) {
clOptions.AddDefines(
genexInterpreter.Evaluate(configDefines, "COMPILE_DEFINITIONS"));