summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-16 16:23:53 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-16 16:37:14 (GMT)
commit6a41aa2abd75ceaa9081edc1c7f8510d2c17dd7e (patch)
treece238e271bce03bcc5ba2a2adfb53d1503607080 /Source/cmPolicies.h
parent1d00ed7cf7ffd5c51dfcf77075589ab0e30d29a3 (diff)
downloadCMake-6a41aa2abd75ceaa9081edc1c7f8510d2c17dd7e.zip
CMake-6a41aa2abd75ceaa9081edc1c7f8510d2c17dd7e.tar.gz
CMake-6a41aa2abd75ceaa9081edc1c7f8510d2c17dd7e.tar.bz2
cmPolicies: Split parsing and impl of ApplyPolicyVersion
Also rename local variables to clarify their role during parsing.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 2198184..00f3fd0 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -290,6 +290,8 @@ public:
///! Set a policy level for this listfile
static bool ApplyPolicyVersion(cmMakefile* mf,
std::string const& version_min);
+ static bool ApplyPolicyVersion(cmMakefile* mf, unsigned int majorVer,
+ unsigned int minorVer, unsigned int patchVer);
///! return a warning string for a given policy
static std::string GetPolicyWarning(cmPolicies::PolicyID id);