summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-22 01:18:55 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-25 12:48:36 (GMT)
commit71e69fc93b9f1a0829d04b9e44107c92458efe20 (patch)
tree242ee964ba495918694ffd76874b1499cbece399 /Source/cmPolicies.h
parent84e18056668491d5a7e0068c9287455151a18197 (diff)
downloadCMake-71e69fc93b9f1a0829d04b9e44107c92458efe20.zip
CMake-71e69fc93b9f1a0829d04b9e44107c92458efe20.tar.gz
CMake-71e69fc93b9f1a0829d04b9e44107c92458efe20.tar.bz2
cmPolicies: Store only state that users can set.
cmPolicies::PolicyMap does not need to store the REQUIRED_ALWAYS or REQUIRED_IF_USED states as they are statically determined.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 8a3c27d..a5aba58 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -244,7 +244,6 @@ public:
REQUIRED_IF_USED,
REQUIRED_ALWAYS ///< Issue an error unless user sets policy status to NEW.
};
-#define POLICY_STATUS_COUNT 5
/// Policy identifiers
enum PolicyID
@@ -288,6 +287,7 @@ public:
bool IsEmpty() const;
private:
+#define POLICY_STATUS_COUNT 3
std::bitset<cmPolicies::CMPCOUNT * POLICY_STATUS_COUNT> Status;
};
};