diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2015-09-30 20:22:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-02 13:43:24 (GMT) |
commit | 61c472a287305490bef2047784d7670d8354cbf3 (patch) | |
tree | c170086f21cc29f6760894a8a0826ea8d9a72029 /Source/cmSystemTools.cxx | |
parent | b31ac171a4acdc8d8eb1d08c5b5f61ec90a9dbaa (diff) | |
download | CMake-61c472a287305490bef2047784d7670d8354cbf3.zip CMake-61c472a287305490bef2047784d7670d8354cbf3.tar.gz CMake-61c472a287305490bef2047784d7670d8354cbf3.tar.bz2 |
cmSystemTools: Add VersionCompareGreater helper
Wrap a call to VersionCompare with OP_GREATER in a signature suitable
for use with std::sort.
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 d3c1f16..2c5aa8a 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2777,6 +2777,14 @@ bool cmSystemTools::VersionCompare(cmSystemTools::CompareOp op, } //---------------------------------------------------------------------------- +bool cmSystemTools::VersionCompareGreater(std::string const& lhs, + std::string const& rhs) +{ + return cmSystemTools::VersionCompare( + cmSystemTools::OP_GREATER, lhs.c_str(), rhs.c_str()); +} + +//---------------------------------------------------------------------------- bool cmSystemTools::RemoveRPath(std::string const& file, std::string* emsg, bool* removed) { |