summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-12-21 17:27:04 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-12-21 17:27:04 (GMT)
commit7af553188ec50c976a5d0c8174d2f47cac68d71d (patch)
tree65158f6a94f6707bbdb60060c9d8f1fd5b779b7e /Source/cmSystemTools.h
parentcb27cfb1cc6d8a273f69506414c2991b6c989621 (diff)
downloadCMake-7af553188ec50c976a5d0c8174d2f47cac68d71d.zip
CMake-7af553188ec50c976a5d0c8174d2f47cac68d71d.tar.gz
CMake-7af553188ec50c976a5d0c8174d2f47cac68d71d.tar.bz2
Added support for CTest awareness of the CDash version. This will help forward compatibility for both tools. Note that this changeset effectively makes the default to disable output compression. Now, to enable output compression, the CDASH_CTEST_VERSION must be explicity set to >= 1.6. Automated detection of the CDash version is the next step.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 6364870..e5bb305 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -268,6 +268,17 @@ public:
UNKNOWN_FILE_FORMAT
};
+ enum CompareOp {
+ OP_LESS,
+ OP_GREATER,
+ OP_EQUAL
+ };
+
+ /**
+ * Compare versions
+ */
+ static bool VersionCompare(CompareOp op, const char* lhs, const char* rhs);
+
/**
* Determine the file type based on the extension
*/