summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio8Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-28 17:55:26 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-28 17:55:26 (GMT)
commit7d2de52c1a617a8a559e5c749ce5e6abd3739f01 (patch)
tree3ae6b364d9f04d7cdcacd6ddc8ddd8f9e9bc0063 /Source/cmGlobalVisualStudio8Generator.cxx
parent506dca3990e56281bd0eecd6c26afe6d36caab6e (diff)
downloadCMake-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/cmGlobalVisualStudio8Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio8Generator.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio8Generator.cxx b/Source/cmGlobalVisualStudio8Generator.cxx
index 760eb7b..1b3236b 100644
--- a/Source/cmGlobalVisualStudio8Generator.cxx
+++ b/Source/cmGlobalVisualStudio8Generator.cxx
@@ -75,7 +75,6 @@ void cmGlobalVisualStudio8Generator::Generate()
{
// Add a special target on which all other targets depend that
// checks the build system and optionally re-runs CMake.
- const char* no_output = 0;
const char* no_working_directory = 0;
std::vector<std::string> no_depends;
std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
@@ -90,10 +89,10 @@ void cmGlobalVisualStudio8Generator::Generate()
static_cast<cmLocalVisualStudio7Generator*>(generators[0]);
cmMakefile* mf = lg->GetMakefile();
std::string cmake_command = mf->GetRequiredDefinition("CMAKE_COMMAND");
+ cmCustomCommandLines noCommandLines;
mf->AddUtilityCommand(CMAKE_CHECK_BUILD_SYSTEM_TARGET, true,
- no_output, no_depends,
- no_working_directory,
- "echo", "Checking build system");
+ no_working_directory, no_depends,
+ noCommandLines);
cmTarget* tgt = mf->FindTarget(CMAKE_CHECK_BUILD_SYSTEM_TARGET);
if(!tgt)
{