diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 92e6b3e813..435534dc61 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -919,9 +919,7 @@ bool HandleMakeDirectoryCommand(std::vector const& args, } std::string expr; - for (std::string const& arg : - cmMakeRange(args).advance(1)) // Get rid of subcommand - { + for (std::string const& arg : argsRange) { const std::string* cdir = &arg; if (!cmsys::SystemTools::FileIsFullPath(arg)) { expr =