summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2015-09-30 20:22:43 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-02 13:43:24 (GMT)
commit61c472a287305490bef2047784d7670d8354cbf3 (patch)
treec170086f21cc29f6760894a8a0826ea8d9a72029 /Source/cmSystemTools.h
parentb31ac171a4acdc8d8eb1d08c5b5f61ec90a9dbaa (diff)
downloadCMake-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.h')
-rw-r--r--Source/cmSystemTools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index e88170a..b6b0978 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -294,6 +294,8 @@ public:
* Compare versions
*/
static bool VersionCompare(CompareOp op, const char* lhs, const char* rhs);
+ static bool VersionCompareGreater(std::string const& lhs,
+ std::string const& rhs);
/**
* Determine the file type based on the extension