summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-10 14:30:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-10 14:30:42 (GMT)
commit79b64690d9ccb8b6a3feac8e6600e7c7e7dcc33a (patch)
tree78edc69b3a1b9d7d607d7ffa88951b15d6a828a4 /Source/cmTarget.cxx
parent54c3563e951edf70f4fa4fe310cbed21f5412a56 (diff)
parent76a08cd25332b74627802df8817068219b89161d (diff)
downloadCMake-79b64690d9ccb8b6a3feac8e6600e7c7e7dcc33a.zip
CMake-79b64690d9ccb8b6a3feac8e6600e7c7e7dcc33a.tar.gz
CMake-79b64690d9ccb8b6a3feac8e6600e7c7e7dcc33a.tar.bz2
Merge topic 'werror-property'
76a08cd253 COMPILE_WARNING_AS_ERROR: Add options to treat warnings as errors Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: Michael Hirsch <michael@scivision.dev> Merge-request: !7187
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 646fd7e..80d1940 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -588,6 +588,7 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
initProp("UNITY_BUILD_UNIQUE_ID");
initProp("OPTIMIZE_DEPENDENCIES");
initProp("EXPORT_COMPILE_COMMANDS");
+ initProp("COMPILE_WARNING_AS_ERROR");
initPropValue("UNITY_BUILD_BATCH_SIZE", "8");
initPropValue("UNITY_BUILD_MODE", "BATCH");
initPropValue("PCH_WARN_INVALID", "ON");