summaryrefslogtreecommitdiffstats
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-29 19:28:14 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-08 20:29:44 (GMT)
commitc36d63cd48fbfda57cd8cf25c029a3a175e10299 (patch)
tree979c1f66e94ad7850b2db7e92c98a96cd0f34313 /Source/cmcmd.cxx
parent8986dec05dade19ee0f779c6c498dc0e04a8f8ee (diff)
downloadCMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.zip
CMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.tar.gz
CMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.tar.bz2
cmake: initialize with Role that controls which commands to register
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index cc954e6..dc267e7 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -583,7 +583,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
std::cerr << "-E capabilities accepts no additional arguments\n";
return 1;
}
- cmake cm;
+ cmake cm(cmake::RoleInternal);
#if defined(HAVE_SERVER_MODE) && HAVE_SERVER_MODE
std::cout << cm.ReportCapabilities(true);
#else
@@ -760,7 +760,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args)
const bool verbose = isCMakeVerbose();
// Create a cmake object instance to process dependencies.
- cmake cm;
+ cmake cm(cmake::RoleScript); // All we need is the `set` command.
std::string gen;
std::string homeDir;
std::string startDir;