summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-28 14:53:32 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-28 14:53:32 (GMT)
commit7db64cdb2831e76daf59fff3715ebb1fb1fc3747 (patch)
tree87f6d516be90c1479d1808b26c5f7b4307024376 /Source/cmGlobalGenerator.cxx
parent36d7f3990aa1341ffa7782bea6e3b3233a3581ff (diff)
downloadCMake-7db64cdb2831e76daf59fff3715ebb1fb1fc3747.zip
CMake-7db64cdb2831e76daf59fff3715ebb1fb1fc3747.tar.gz
CMake-7db64cdb2831e76daf59fff3715ebb1fb1fc3747.tar.bz2
BUG: Need to use the CMAKE_COMMAND cache entry to get the location of CMake.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index e783774..bc99f12 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"))