summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-27 12:03:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-27 12:03:30 (GMT)
commitf6704357159366fc404491e02f1ea6cee87f0989 (patch)
treea75b6eb21ecb556276b2b4c09424ee1321d24b0c /Source/cmTarget.cxx
parentcc1d5a436b4b2b7630b892890989d3b5ef59dba9 (diff)
parent2ce08e54891054aeba3f273f9970a7fe8fa8b66c (diff)
downloadCMake-f6704357159366fc404491e02f1ea6cee87f0989.zip
CMake-f6704357159366fc404491e02f1ea6cee87f0989.tar.gz
CMake-f6704357159366fc404491e02f1ea6cee87f0989.tar.bz2
Merge topic 'pch-warn-invalid'
2ce08e5489 PCH: add an option to disable `-Winvalid-pch` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4499
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 3838356..8b51690 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");