From 7db64cdb2831e76daf59fff3715ebb1fb1fc3747 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 28 Feb 2006 09:53:32 -0500 Subject: [PATCH] BUG: Need to use the CMAKE_COMMAND cache entry to get the location of CMake. --- Source/cmGlobalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index e783774d1..bc99f12eb 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1253,7 +1253,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets) singleLine.erase(singleLine.begin(), singleLine.end()); depends.erase(depends.begin(), depends.end()); - const char* cmakeCommand = this->GetCMakeInstance()->GetCMakeCommand(); + const char* cmakeCommand = mf->GetRequiredDefinition("CMAKE_COMMAND"); // Use CMAKE_EDIT_COMMAND for the edit_cache rule if it is defined. // Otherwise default to the interactive command-line interface. if(mf->GetDefinition("CMAKE_EDIT_COMMAND"))