cmEnableTestingCommand.cxx 537 B

12345678910111213141516
  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 "cmEnableTestingCommand.h"
  4. #include "cmMakefile.h"
  5. class cmExecutionStatus;
  6. // we do this in the final pass so that we now the subdirs have all
  7. // been defined
  8. bool cmEnableTestingCommand::InitialPass(std::vector<std::string> const&,
  9. cmExecutionStatus&)
  10. {
  11. this->Makefile->AddDefinition("CMAKE_TESTING_ENABLED", "1");
  12. return true;
  13. }