Skip to content

Commit 5292f45

Browse files
committed
Added pch extraction and added to force includes.
1 parent cedd783 commit 5292f45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

StructLayout/Editor/Extractors/ExtractorVisualStudio.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ private void AppendProjectProperties(ProjectProperties properties, VCCLCompilerT
109109
AppendMSBuildStringToList(properties.IncludeDirectories, evaluator.Evaluate(cl.FullIncludePath));
110110
AppendMSBuildStringToList(properties.ForceIncludes, evaluator.Evaluate(cl.ForcedIncludeFiles));
111111
AppendMSBuildStringToList(properties.PrepocessorDefinitions, evaluator.Evaluate(cl.PreprocessorDefinitions));
112+
113+
//PCH
114+
if (cl.UsePrecompiledHeader != pchOption.pchNone)
115+
{
116+
AppendMSBuildStringToList(properties.ForceIncludes, evaluator.Evaluate(cl.PrecompiledHeaderThrough));
117+
}
112118
}
113119
else if (nmake != null)
114120
{

0 commit comments

Comments
 (0)