summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 0fdcc11..d806978 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -941,7 +941,7 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable,
if(variable == "CMAKE_COMMAND")
{
const char* cmcommand =
- this->GlobalGenerator->GetCMakeInstance()->GetCMakeCommand();
+ this->GetMakefile()->GetDefinition("CMAKE_COMMAND");
return this->Convert(cmcommand, FULL, SHELL);
}
std::vector<std::string> enabledLanguages;