mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
cmake: initialize with Role that controls which commands to register
This commit is contained in:
@@ -81,7 +81,7 @@ int main(int argc, char const* const* argv)
|
||||
cmDocumentation doc;
|
||||
doc.addCMakeStandardDocSections();
|
||||
if (doc.CheckOptions(argc, argv)) {
|
||||
cmake hcm;
|
||||
cmake hcm(cmake::RoleInternal);
|
||||
hcm.SetHomeDirectory("");
|
||||
hcm.SetHomeOutputDirectory("");
|
||||
hcm.AddCMakePaths();
|
||||
|
||||
@@ -40,7 +40,7 @@ cmCursesMainForm::cmCursesMainForm(std::vector<std::string> const& args,
|
||||
"Welcome to ccmake, curses based user interface for CMake.");
|
||||
this->HelpMessage.push_back("");
|
||||
this->HelpMessage.push_back(s_ConstHelpMessage);
|
||||
this->CMakeInstance = new cmake;
|
||||
this->CMakeInstance = new cmake(cmake::RoleProject);
|
||||
this->CMakeInstance->SetCMakeEditCommand(
|
||||
cmSystemTools::GetCMakeCursesCommand());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user