summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-03-18 18:21:08 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2020-03-26 13:24:46 (GMT)
commit2ce08e54891054aeba3f273f9970a7fe8fa8b66c (patch)
treedddfaec9accd7f9d5c0d5cfa1a036cd35e162b4f /Source/cmTarget.cxx
parent863b0fa2aca3ece98d177f2dbafcad56f7037c8a (diff)
downloadCMake-2ce08e54891054aeba3f273f9970a7fe8fa8b66c.zip
CMake-2ce08e54891054aeba3f273f9970a7fe8fa8b66c.tar.gz
CMake-2ce08e54891054aeba3f273f9970a7fe8fa8b66c.tar.bz2
PCH: add an option to disable `-Winvalid-pch`
Fixes: #20295
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index f92eea4..3adf2e8 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -368,6 +368,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("DISABLE_PRECOMPILE_HEADERS");
initProp("UNITY_BUILD");
initPropValue("UNITY_BUILD_BATCH_SIZE", "8");
+ initPropValue("PCH_WARN_INVALID", "ON");
#ifdef __APPLE__
if (this->GetGlobalGenerator()->IsXcode()) {
initProp("XCODE_SCHEME_ADDRESS_SANITIZER");