summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-03-20 14:21:32 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-03-26 12:20:45 (GMT)
commit0cd20e8f62328b6e3ae750dc253473cf00e05adb (patch)
treeaafff71c6dbaab8a05a0ab84459117142b557b18 /Source/cmPolicies.h
parent66e0b312c0985493adeeda63d1dc7815cc0fe364 (diff)
downloadCMake-0cd20e8f62328b6e3ae750dc253473cf00e05adb.zip
CMake-0cd20e8f62328b6e3ae750dc253473cf00e05adb.tar.gz
CMake-0cd20e8f62328b6e3ae750dc253473cf00e05adb.tar.bz2
export(): raise an error on multiple calls with same FILE
Fixes: 20472
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 1366ff0..d3daad8 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -305,7 +305,10 @@ class cmMakefile;
17, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0102, \
"mark_as_advanced() does nothing if a cache entry does not exist.", \
- 3, 17, 0, cmPolicies::WARN)
+ 3, 17, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0103, \
+ "multiple export() with same FILE without APPEND is not allowed.", \
+ 3, 18, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \