cmakemain: use script role for -P
This commit is contained in:
parent
8e2f3582eb
commit
a890ca2f8d
@ -289,7 +289,9 @@ int do_cmake(int ac, char const* const* av)
|
||||
int ret = cm.GetSystemInformation(args);
|
||||
return ret;
|
||||
}
|
||||
cmake cm(cmake::RoleProject);
|
||||
cmake::Role const role =
|
||||
workingMode == cmake::NORMAL_MODE ? cmake::RoleProject : cmake::RoleScript;
|
||||
cmake cm(role);
|
||||
cm.SetHomeDirectory("");
|
||||
cm.SetHomeOutputDirectory("");
|
||||
cmSystemTools::SetMessageCallback(cmakemainMessageCallback, (void*)&cm);
|
||||
|
Loading…
Reference in New Issue
Block a user