diff options
author | Brad King <brad.king@kitware.com> | 2016-01-11 18:42:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-11 18:43:22 (GMT) |
commit | ad594de8cc9c4063830df58453b0679c209ff4d8 (patch) | |
tree | f9b49d229d2ccf400c9f17ca7a75e24e26ee042a /Source/cmSystemTools.cxx | |
parent | c173e37fa32b9d212cc6305f5e6dc881ba34e140 (diff) | |
download | CMake-ad594de8cc9c4063830df58453b0679c209ff4d8.zip CMake-ad594de8cc9c4063830df58453b0679c209ff4d8.tar.gz CMake-ad594de8cc9c4063830df58453b0679c209ff4d8.tar.bz2 |
cmSystemTools: Add VersionCompareEqual helper
Wrap a call to VersionCompare with OP_EQUAL.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 2c5aa8a..d8b8415 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2777,6 +2777,14 @@ bool cmSystemTools::VersionCompare(cmSystemTools::CompareOp op, } //---------------------------------------------------------------------------- +bool cmSystemTools::VersionCompareEqual(std::string const& lhs, + std::string const& rhs) +{ + return cmSystemTools::VersionCompare( + cmSystemTools::OP_EQUAL, lhs.c_str(), rhs.c_str()); +} + +//---------------------------------------------------------------------------- bool cmSystemTools::VersionCompareGreater(std::string const& lhs, std::string const& rhs) { |