summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2024-09-29 13:56:04 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-02 14:17:08 (GMT)
commitcd418d4bb62bbcc805bd734a01f5b0737292cc88 (patch)
treea89cbf7a116f8769c7273045bdb98045e5568ba0 /Source/cmPolicies.h
parent9b5c805bf608623b52e1155837ddcca390cf0220 (diff)
downloadCMake-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.h9
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) \