diff options
author | Craig Scott <craig.scott@crascit.com> | 2024-08-25 04:41:41 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2024-09-09 22:19:09 (GMT) |
commit | ec519f3e975467443a8286b4ddc1904d964f851f (patch) | |
tree | 064d01a870e69a69f19c3fe2b5f7b33e3e69d9ca /Source/cmPolicies.h | |
parent | 8dc8be08849acb75446a53fe763eee5b3296d739 (diff) | |
download | CMake-ec519f3e975467443a8286b4ddc1904d964f851f.zip CMake-ec519f3e975467443a8286b4ddc1904d964f851f.tar.gz CMake-ec519f3e975467443a8286b4ddc1904d964f851f.tar.bz2 |
add_custom_command: Validate arguments more rigorously
Add a new CMP0175 policy to preserve backward compatibility
for projects that were using unsupported keywords or arguments.
Fixes: #26096, #21089, #18976
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 7b056ae..644cb9e 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -537,6 +537,8 @@ class cmMakefile; SELECT(POLICY, CMP0174, \ "cmake_parse_arguments(PARSE_ARGV) defines a variable for an empty " \ "string after a single-value keyword.", \ + 3, 31, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0175, "add_custom_command() rejects invalid arguments.", \ 3, 31, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) |