summaryrefslogtreecommitdiff
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-12 10:53:45 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2016-01-12 10:53:45 -0500
commitae7398c0a7d2a094f932fada3e4d0675a30afb6a (patch)
treeb90e5ea6f0d052c7d22aaf1a71cbe1c78c56aacc /Source/cmSystemTools.cxx
parent3e4da6144723450a287a78690d1f9e348c85a4e7 (diff)
parenta57caf7eecdfe61e4ac5f63b145fc9269610f3f0 (diff)
downloadcmake-ae7398c0a7d2a094f932fada3e4d0675a30afb6a.tar.gz
Merge topic 'vs-win10-sdk'
a57caf7e VS: Fix Windows 10 SDK version selection (#15831) ad594de8 cmSystemTools: Add VersionCompareEqual helper c173e37f VS: Do not select a partial Windows 10 SDK folder (#15831)
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index b2827dc233..008272cbd1 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -2780,6 +2780,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)
{