summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestUpdateCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-19 13:11:55 +0200
committerRegina Pfeifer <regina@mailbox.org>2019-09-20 13:27:30 +0200
commit0aa8a2ab8b00c0889df3d0fa1be47ad5a0b9db22 (patch)
tree707ea2e27d95ba423c5710bb4ecd42bce5e91023 /Source/CTest/cmCTestUpdateCommand.cxx
parentd5a6a133680e4d5798522a4b29ae6bced1f2db3a (diff)
downloadcmake-0aa8a2ab8b00c0889df3d0fa1be47ad5a0b9db22.tar.gz
cmCTest*Command: Port to cmArgumentParser
Diffstat (limited to 'Source/CTest/cmCTestUpdateCommand.cxx')
-rw-r--r--Source/CTest/cmCTestUpdateCommand.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestUpdateCommand.cxx b/Source/CTest/cmCTestUpdateCommand.cxx
index 65dc9211ae..673eb9ac11 100644
--- a/Source/CTest/cmCTestUpdateCommand.cxx
+++ b/Source/CTest/cmCTestUpdateCommand.cxx
@@ -7,14 +7,11 @@
#include "cmMakefile.h"
#include "cmSystemTools.h"
-#include <vector>
-
cmCTestGenericHandler* cmCTestUpdateCommand::InitializeHandler()
{
- if (this->Values[ct_SOURCE]) {
+ if (!this->Source.empty()) {
this->CTest->SetCTestConfiguration(
- "SourceDirectory",
- cmSystemTools::CollapseFullPath(this->Values[ct_SOURCE]).c_str(),
+ "SourceDirectory", cmSystemTools::CollapseFullPath(this->Source).c_str(),
this->Quiet);
} else {
this->CTest->SetCTestConfiguration(