summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-11-06 16:27:03 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-11-19 22:02:06 (GMT)
commitb5f8113ca7796df47bcb04bcd77991885c3b1b07 (patch)
tree60304b3a34939b475a4314dd6dce11f34e2922f7 /Source/cmPolicies.h
parent1dc85a6652bc8255ff7a9ef39028a7df45e3007b (diff)
downloadCMake-b5f8113ca7796df47bcb04bcd77991885c3b1b07.zip
CMake-b5f8113ca7796df47bcb04bcd77991885c3b1b07.tar.gz
CMake-b5f8113ca7796df47bcb04bcd77991885c3b1b07.tar.bz2
Genex: Add policy to handle empty list items in $<IN_LIST:...>
The old behavior of $<IN_LIST:...> is inconsistent with that of if(IN_LIST), in that it does not find an empty search item even if the list contains empty items. This change adds a new policy to correctly handle empty items and make the behavior more consistent with if(IN_LIST). Fixes: #18556
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 6b1314f..9985d63 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -249,7 +249,9 @@ class cmMakefile;
0, cmPolicies::WARN) \
SELECT(POLICY, CMP0084, \
"The FindQt module does not exist for find_package().", 3, 14, 0, \
- cmPolicies::WARN)
+ cmPolicies::WARN) \
+ SELECT(POLICY, CMP0085, "$<IN_LIST:...> handles empty list items.", 3, 14, \
+ 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \