From 322425faca3fa6dca1356cdcb4c44ea8d46bc32a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 7 Mar 2017 09:30:07 -0500 Subject: [PATCH] cmStateTypes: document that the ordering of targets is important The ordering is assumed in many places throughout the code and modification of the enumeration should be done carefully. --- Source/cmStateTypes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmStateTypes.h b/Source/cmStateTypes.h index 2c974c1dc0..da14cdb30e 100644 --- a/Source/cmStateTypes.h +++ b/Source/cmStateTypes.h @@ -27,6 +27,9 @@ enum SnapshotType VariableScopeType }; +// There are multiple overlapping ranges represented here. Be aware that adding +// a value to this enumeration may cause failures in numerous places which +// assume details about the ordering. enum TargetType { EXECUTABLE,