diff options
author | Brad King <brad.king@kitware.com> | 2022-05-10 14:30:31 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-10 14:30:42 (GMT) |
commit | 79b64690d9ccb8b6a3feac8e6600e7c7e7dcc33a (patch) | |
tree | 78edc69b3a1b9d7d607d7ffa88951b15d6a828a4 /Source/cmTarget.cxx | |
parent | 54c3563e951edf70f4fa4fe310cbed21f5412a56 (diff) | |
parent | 76a08cd25332b74627802df8817068219b89161d (diff) | |
download | CMake-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.cxx | 1 |
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"); |