cmCTestReadCustomFilesCommand.cxx 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include "cmCTestReadCustomFilesCommand.h"
  11. #include "cmCTest.h"
  12. class cmExecutionStatus;
  13. bool cmCTestReadCustomFilesCommand::InitialPass(
  14. std::vector<std::string> const& args, cmExecutionStatus& /*unused*/)
  15. {
  16. if (args.empty()) {
  17. this->SetError("called with incorrect number of arguments");
  18. return false;
  19. }
  20. std::vector<std::string>::const_iterator dit;
  21. for (dit = args.begin(); dit != args.end(); ++dit) {
  22. this->CTest->ReadCustomConfigurationFileTree(dit->c_str(), this->Makefile);
  23. }
  24. return true;
  25. }