summaryrefslogtreecommitdiffstats
path: root/Source/cmEnableTestingCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-12-29 21:27:06 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-12-29 21:27:06 (GMT)
commitd18c9559b3a3e1b4652516dc6efa03fb63c046f6 (patch)
treee4308cd41ab50d48a035394180c706f4b0c158f7 /Source/cmEnableTestingCommand.cxx
parent13e9428d2ea9357d3f832dbe237a7a044ce26c58 (diff)
downloadCMake-d18c9559b3a3e1b4652516dc6efa03fb63c046f6.zip
CMake-d18c9559b3a3e1b4652516dc6efa03fb63c046f6.tar.gz
CMake-d18c9559b3a3e1b4652516dc6efa03fb63c046f6.tar.bz2
sets variable now
Diffstat (limited to 'Source/cmEnableTestingCommand.cxx')
-rw-r--r--Source/cmEnableTestingCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmEnableTestingCommand.cxx b/Source/cmEnableTestingCommand.cxx
index c02649b..7381df8 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<std::string> const&)
+{
+ m_Makefile->AddDefinition("CMAKE_TESTING_ENABLED","1");
+ return true;
+}
+
void cmEnableTestingCommand::FinalPass()
{
// Create a full path filename for output Testfile