cmCTestReadCustomFilesCommand.cxx 679 B

1234567891011121314151617181920212223242526
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #include "cmCTestReadCustomFilesCommand.h"
  4. #include <vector>
  5. #include "cmCTest.h"
  6. #include "cmExecutionStatus.h"
  7. class cmMakefile;
  8. bool cmCTestReadCustomFilesCommand::InitialPass(
  9. std::vector<std::string> const& args, cmExecutionStatus& status) const
  10. {
  11. if (args.empty()) {
  12. status.SetError("called with incorrect number of arguments");
  13. return false;
  14. }
  15. cmMakefile& mf = status.GetMakefile();
  16. for (std::string const& arg : args) {
  17. this->CTest->ReadCustomConfigurationFileTree(arg, &mf);
  18. }
  19. return true;
  20. }