diff options
author | Brad King <brad.king@kitware.com> | 2006-09-28 17:55:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-09-28 17:55:26 (GMT) |
commit | 7d2de52c1a617a8a559e5c749ce5e6abd3739f01 (patch) | |
tree | 3ae6b364d9f04d7cdcacd6ddc8ddd8f9e9bc0063 /Source/cmGlobalGenerator.cxx | |
parent | 506dca3990e56281bd0eecd6c26afe6d36caab6e (diff) | |
download | CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.zip CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.gz CMake-7d2de52c1a617a8a559e5c749ce5e6abd3739f01.tar.bz2 |
ENH: Cleaned up signature of cmMakefile::AddUtilityCommand. It is not valid to have an output from a utility rule and no calls to the method asked for an output anyway. The argument has been removed.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 67cd0c1..4b895e2 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1300,7 +1300,6 @@ void cmGlobalGenerator::SetupTests() // If the file doesn't exist, then ENABLE_TESTING hasn't been run if (total_tests > 0) { - const char* no_output = 0; const char* no_working_dir = 0; std::vector<std::string> no_depends; std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it; @@ -1313,7 +1312,7 @@ void cmGlobalGenerator::SetupTests() cmMakefile* mf = gen[0]->GetMakefile(); if(const char* outDir = mf->GetDefinition("CMAKE_CFG_INTDIR")) { - mf->AddUtilityCommand("RUN_TESTS", false, no_output, no_depends, + mf->AddUtilityCommand("RUN_TESTS", false, no_depends, no_working_dir, ctest.c_str(), "-C", outDir); } |