summaryrefslogtreecommitdiffstats
path: root/Source/cmEnableTestingCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-04-08 07:55:52 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-22 13:27:56 (GMT)
commitdfaa87f1b3335b2e80f68726fd5e1b3bbd87d667 (patch)
treed631728ba6308e21581ab455fd341d9fc92dd11d /Source/cmEnableTestingCommand.cxx
parent28f2d12a055e025aa0ddeb9842f204f29181eaff (diff)
downloadCMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.zip
CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.gz
CMake-dfaa87f1b3335b2e80f68726fd5e1b3bbd87d667.tar.bz2
cmState: Support BuiltinCommands as free functions
Diffstat (limited to 'Source/cmEnableTestingCommand.cxx')
-rw-r--r--Source/cmEnableTestingCommand.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx
index 6a64450..89212c8 100644
--- a/Source/cmEnableTestingCommand.cxx
+++ b/Source/cmEnableTestingCommand.cxx
@@ -2,15 +2,12 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmEnableTestingCommand.h"
+#include "cmExecutionStatus.h"
#include "cmMakefile.h"
-class cmExecutionStatus;
-
-// we do this in the final pass so that we now the subdirs have all
-// been defined
-bool cmEnableTestingCommand::InitialPass(std::vector<std::string> const&,
- cmExecutionStatus&)
+bool cmEnableTestingCommand(std::vector<std::string> const&,
+ cmExecutionStatus& status)
{
- this->Makefile->AddDefinition("CMAKE_TESTING_ENABLED", "1");
+ status.GetMakefile().AddDefinition("CMAKE_TESTING_ENABLED", "1");
return true;
}