diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-29 19:28:14 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-08 20:29:44 (GMT) |
commit | c36d63cd48fbfda57cd8cf25c029a3a175e10299 (patch) | |
tree | 979c1f66e94ad7850b2db7e92c98a96cd0f34313 /Source/cmakemain.cxx | |
parent | 8986dec05dade19ee0f779c6c498dc0e04a8f8ee (diff) | |
download | CMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.zip CMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.tar.gz CMake-c36d63cd48fbfda57cd8cf25c029a3a175e10299.tar.bz2 |
cmake: initialize with Role that controls which commands to register
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 3d11241..f472b8a 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -201,7 +201,7 @@ int do_cmake(int ac, char const* const* av) doc.addCMakeStandardDocSections(); if (doc.CheckOptions(ac, av)) { // Construct and print requested documentation. - cmake hcm; + cmake hcm(cmake::RoleInternal); hcm.SetHomeDirectory(""); hcm.SetHomeOutputDirectory(""); hcm.AddCMakePaths(); @@ -283,13 +283,13 @@ int do_cmake(int ac, char const* const* av) } } if (sysinfo) { - cmake cm; + cmake cm(cmake::RoleProject); cm.SetHomeDirectory(""); cm.SetHomeOutputDirectory(""); int ret = cm.GetSystemInformation(args); return ret; } - cmake cm; + cmake cm(cmake::RoleProject); cm.SetHomeDirectory(""); cm.SetHomeOutputDirectory(""); cmSystemTools::SetMessageCallback(cmakemainMessageCallback, (void*)&cm); @@ -407,7 +407,7 @@ static int do_build(int ac, char const* const* av) return 1; } - cmake cm; + cmake cm(cmake::RoleInternal); cmSystemTools::SetMessageCallback(cmakemainMessageCallback, (void*)&cm); cm.SetProgressCallback(cmakemainProgressCallback, (void*)&cm); return cm.Build(dir, target, config, nativeOptions, clean); |