diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2024-09-29 13:56:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-10-02 14:17:08 (GMT) |
commit | cd418d4bb62bbcc805bd734a01f5b0737292cc88 (patch) | |
tree | a89cbf7a116f8769c7273045bdb98045e5568ba0 /Source/cmPolicies.h | |
parent | 9b5c805bf608623b52e1155837ddcca390cf0220 (diff) | |
download | CMake-cd418d4bb62bbcc805bd734a01f5b0737292cc88.zip CMake-cd418d4bb62bbcc805bd734a01f5b0737292cc88.tar.gz CMake-cd418d4bb62bbcc805bd734a01f5b0737292cc88.tar.bz2 |
Static libraries de-duplication: keep first occurrence
Fixes: #26335
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index e2254fe..55fce2e 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -545,7 +545,11 @@ class cmMakefile; SELECT(POLICY, CMP0177, "install() DESTINATION paths are normalized.", 3, \ 31, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0178, "Test command lines preserve empty arguments.", 3, \ - 31, 0, cmPolicies::WARN) + 31, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0179, \ + "De-duplication of static libraries on link lines keeps first " \ + "occurrence.", \ + 3, 31, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ @@ -589,7 +593,8 @@ class cmMakefile; F(CMP0156) \ F(CMP0157) \ F(CMP0160) \ - F(CMP0162) + F(CMP0162) \ + F(CMP0179) #define CM_FOR_EACH_CUSTOM_COMMAND_POLICY(F) \ F(CMP0116) \ |