mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
cmakemain: Initialize vector content with iterators directly.
This commit is contained in:
1 parent
8211010c3f
commit
fa889c4d2f
1 file changed
+1
-5
@@ -219,11 +219,7 @@ int do_cmake(int ac, char const* const* av)
|
||||
|
||||
// the command line args are processed here so that you can do
|
||||
// -DCMAKE_MODULE_PATH=/some/path and have this value accessible here
|
||||
std::vector<std::string> args;
|
||||
for(int i =0; i < ac; ++i)
|
||||
{
|
||||
args.push_back(av[i]);
|
||||
}
|
||||
std::vector<std::string> args(av, av + ac);
|
||||
hcm.SetCacheArgs(args);
|
||||
|
||||
std::vector<cmDocumentationEntry> generators;
|
||||
|
||||
Reference in new issue
Block a user