summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestGlobalVC.cxx
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2019-04-30 20:12:02 (GMT)
committerZack Galbreath <zack.galbreath@kitware.com>2019-05-07 14:45:47 (GMT)
commit2a34d0ac3613101996b4e751bc2653e4cbeaf5b0 (patch)
tree7b1e9f211a1f5fd33f7950058968c08cc6544f68 /Source/CTest/cmCTestGlobalVC.cxx
parent7ddac9512188d1dbfcac76b24957956a197370ad (diff)
downloadCMake-2a34d0ac3613101996b4e751bc2653e4cbeaf5b0.zip
CMake-2a34d0ac3613101996b4e751bc2653e4cbeaf5b0.tar.gz
CMake-2a34d0ac3613101996b4e751bc2653e4cbeaf5b0.tar.bz2
ctest: Add new variable CTEST_UPDATE_VERSION_OVERRIDE
Set this in a CTest script to explicitly define what the current revision will be reported as in Update.xml.
Diffstat (limited to 'Source/CTest/cmCTestGlobalVC.cxx')
-rw-r--r--Source/CTest/cmCTestGlobalVC.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGlobalVC.cxx b/Source/CTest/cmCTestGlobalVC.cxx
index a2d4d2c..54ebd4f 100644
--- a/Source/CTest/cmCTestGlobalVC.cxx
+++ b/Source/CTest/cmCTestGlobalVC.cxx
@@ -117,3 +117,8 @@ bool cmCTestGlobalVC::WriteXMLUpdates(cmXMLWriter& xml)
return result;
}
+
+void cmCTestGlobalVC::SetNewRevision(std::string const& revision)
+{
+ this->NewRevision = revision;
+}