mirror of
https://github.com/reactos/CMake.git
synced 2025-02-26 23:15:28 +00:00
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
This commit is contained in:
commit
dfbe8109b4
@ -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"));
|
||||
|
@ -31,7 +31,7 @@ foreach(line IN LISTS tgt_projects_strings)
|
||||
set(have_pch_header ON)
|
||||
endif()
|
||||
|
||||
if (line MATCHES "<ForcedIncludeFiles.*>.*${pch_header}</ForcedIncludeFiles>")
|
||||
if (line MATCHES "<ForcedIncludeFiles.*>.*${pch_header}.*</ForcedIncludeFiles>")
|
||||
set(have_force_pch_header ON)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user