2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc.
|
2006-03-28 23:37:44 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2006-03-28 23:37:44 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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
|
|
|
}
|