2016-09-27 22:01:08 +03: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 23:37:44 +04:00
|
|
|
#include "cmCTestReadCustomFilesCommand.h"
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2006-03-28 23:37:44 +04:00
|
|
|
#include "cmCTest.h"
|
|
|
|
|
2016-08-24 23:01:40 +03:00
|
|
|
class cmExecutionStatus;
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
bool cmCTestReadCustomFilesCommand::InitialPass(
|
2016-08-17 02:49:57 +03:00
|
|
|
std::vector<std::string> const& args, cmExecutionStatus& /*unused*/)
|
2006-03-28 23:37:44 +04:00
|
|
|
{
|
2016-05-27 00:05:30 +03:00
|
|
|
if (args.empty()) {
|
2006-03-28 23:37:44 +04:00
|
|
|
this->SetError("called with incorrect number of arguments");
|
|
|
|
return false;
|
2016-05-16 17:34:04 +03:00
|
|
|
}
|
2006-03-28 23:37:44 +04:00
|
|
|
|
|
|
|
std::vector<std::string>::const_iterator dit;
|
2016-05-16 17:34:04 +03:00
|
|
|
for (dit = args.begin(); dit != args.end(); ++dit) {
|
|
|
|
this->CTest->ReadCustomConfigurationFileTree(dit->c_str(), this->Makefile);
|
|
|
|
}
|
2006-04-09 15:45:18 +04:00
|
|
|
|
2006-03-29 01:36:48 +04:00
|
|
|
return true;
|
2006-03-28 23:37:44 +04:00
|
|
|
}
|