From d18c9559b3a3e1b4652516dc6efa03fb63c046f6 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 29 Dec 2003 16:27:06 -0500 Subject: [PATCH] sets variable now --- Source/cmEnableTestingCommand.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx index c02649b5c..7381df8c9 100644 --- a/Source/cmEnableTestingCommand.cxx +++ b/Source/cmEnableTestingCommand.cxx @@ -18,6 +18,12 @@ // we do this in the final pass so that we now the subdirs have all // been defined +bool cmEnableTestingCommand::InitialPass(std::vector const&) +{ + m_Makefile->AddDefinition("CMAKE_TESTING_ENABLED","1"); + return true; +} + void cmEnableTestingCommand::FinalPass() { // Create a full path filename for output Testfile