2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2006-03-28 14:37:44 -05:00
|
|
|
#include "cmCTestReadCustomFilesCommand.h"
|
2016-04-29 09:40:20 -04:00
|
|
|
|
2006-03-28 14:37:44 -05:00
|
|
|
#include "cmCTest.h"
|
|
|
|
|
2016-08-24 22:01:40 +02:00
|
|
|
class cmExecutionStatus;
|
|
|
|
|
2016-05-16 10:34:04 -04:00
|
|
|
bool cmCTestReadCustomFilesCommand::InitialPass(
|
2016-08-17 01:49:57 +02:00
|
|
|
std::vector<std::string> const& args, cmExecutionStatus& /*unused*/)
|
2006-03-28 14:37:44 -05:00
|
|
|
{
|
2016-05-26 23:05:30 +02:00
|
|
|
if (args.empty()) {
|
2006-03-28 14:37:44 -05:00
|
|
|
this->SetError("called with incorrect number of arguments");
|
|
|
|
return false;
|
2016-05-16 10:34:04 -04:00
|
|
|
}
|
2006-03-28 14:37:44 -05:00
|
|
|
|
|
|
|
std::vector<std::string>::const_iterator dit;
|
2016-05-16 10:34:04 -04:00
|
|
|
for (dit = args.begin(); dit != args.end(); ++dit) {
|
|
|
|
this->CTest->ReadCustomConfigurationFileTree(dit->c_str(), this->Makefile);
|
|
|
|
}
|
2006-04-09 07:45:18 -04:00
|
|
|
|
2006-03-28 16:36:48 -05:00
|
|
|
return true;
|
2006-03-28 14:37:44 -05:00
|
|
|
}
|