diff options
author | Brad King <brad.king@kitware.com> | 2018-04-17 15:43:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-18 12:09:56 (GMT) |
commit | 391a5837ee859c749c2a988eb873a2a9a2c58f91 (patch) | |
tree | 478a42c6182f433142114e8b68c1cd6cda0d68c8 /Source/cmStateSnapshot.h | |
parent | 3c47ac5b2571939f7d987d9f23a9969b1f67f46e (diff) | |
download | CMake-391a5837ee859c749c2a988eb873a2a9a2c58f91.zip CMake-391a5837ee859c749c2a988eb873a2a9a2c58f91.tar.gz CMake-391a5837ee859c749c2a988eb873a2a9a2c58f91.tar.bz2 |
cmake_policy: Add undocumented PARENT_SCOPE option to GET
Policies affecting the behavior of CMake-provided macros and functions
need to be able to get the policy setting as of the call site rather
than the definition site. Add an undocumented option to do this.
Diffstat (limited to 'Source/cmStateSnapshot.h')
-rw-r--r-- | Source/cmStateSnapshot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStateSnapshot.h b/Source/cmStateSnapshot.h index 94d6274..af5653b 100644 --- a/Source/cmStateSnapshot.h +++ b/Source/cmStateSnapshot.h @@ -43,7 +43,8 @@ public: cmStateEnums::SnapshotType GetType() const; void SetPolicy(cmPolicies::PolicyID id, cmPolicies::PolicyStatus status); - cmPolicies::PolicyStatus GetPolicy(cmPolicies::PolicyID id) const; + cmPolicies::PolicyStatus GetPolicy(cmPolicies::PolicyID id, + bool parent_scope = false) const; bool HasDefinedPolicyCMP0011(); void PushPolicy(cmPolicies::PolicyMap const& entry, bool weak); bool PopPolicy(); |