summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-12-13 00:12:15 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-12-13 14:21:27 (GMT)
commitc5c218fa0d00c0aa06bf51fafadd8e71f2c549fb (patch)
tree376705479df431752a9d1a6e8c3bac433bd82c07 /Source
parenta033bafbe01fcb4654f075955e0b3de7be81b0f7 (diff)
downloadCMake-c5c218fa0d00c0aa06bf51fafadd8e71f2c549fb.zip
CMake-c5c218fa0d00c0aa06bf51fafadd8e71f2c549fb.tar.gz
CMake-c5c218fa0d00c0aa06bf51fafadd8e71f2c549fb.tar.bz2
PCH: Append pch header file to list of forced include files
Fixes: #20088
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 94b6495..ed09471 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"));