BUG: Need to use the CMAKE_COMMAND cache entry to get the location of CMake.
This commit is contained in:
parent
36d7f3990a
commit
7db64cdb28
|
@ -1253,7 +1253,7 @@ void cmGlobalGenerator::CreateDefaultGlobalTargets(cmTargets* targets)
|
||||||
singleLine.erase(singleLine.begin(), singleLine.end());
|
singleLine.erase(singleLine.begin(), singleLine.end());
|
||||||
depends.erase(depends.begin(), depends.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.
|
// Use CMAKE_EDIT_COMMAND for the edit_cache rule if it is defined.
|
||||||
// Otherwise default to the interactive command-line interface.
|
// Otherwise default to the interactive command-line interface.
|
||||||
if(mf->GetDefinition("CMAKE_EDIT_COMMAND"))
|
if(mf->GetDefinition("CMAKE_EDIT_COMMAND"))
|
||||||
|
|
Loading…
Reference in New Issue