cmCTestReadCustomFilesCommand.cxx 662 B

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