summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-10-05 10:20:37 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-10-09 11:50:25 (GMT)
commit36ded610af1bf80304a35491eeb66c34c8e9b7a8 (patch)
treed41161cbbaafe3ecbe04aefffdc40e9e5adc6fae /Source/cmGlobalXCodeGenerator.cxx
parentf1fb63b306ad06a8931ca5a00a2b9ce9e66bc12e (diff)
downloadCMake-36ded610af1bf80304a35491eeb66c34c8e9b7a8.zip
CMake-36ded610af1bf80304a35491eeb66c34c8e9b7a8.tar.gz
CMake-36ded610af1bf80304a35491eeb66c34c8e9b7a8.tar.bz2
PCH: Generate sources during Compute step
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 8ae1e12..67f1a46 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -827,6 +827,11 @@ cmXCodeObject* cmGlobalXCodeGenerator::CreateXCodeSourceFile(
genexInterpreter.Evaluate(compile_defs, COMPILE_DEFINITIONS).c_str(),
true);
}
+
+ if (sf->GetPropertyAsBool("SKIP_PRECOMPILE_HEADERS")) {
+ this->AppendDefines(flagsBuild, "CMAKE_SKIP_PRECOMPILE_HEADERS", true);
+ }
+
if (!flagsBuild.IsEmpty()) {
if (!flags.empty()) {
flags += ' ';
@@ -2827,8 +2832,6 @@ bool cmGlobalXCodeGenerator::CreateGroups(
continue;
}
- generator->AddPchDependencies(gtgt, "");
-
auto addSourceToGroup = [this, mf, gtgt,
&sourceGroups](std::string const& source) {
cmSourceGroup* sourceGroup = mf->FindSourceGroup(source, sourceGroups);