Skip to content
Snippets Groups Projects
Commit 100d3cb3 authored by Kyle Edwards's avatar Kyle Edwards
Browse files

file(GET_RUNTIME_DEPENDENCIES): Use cmSystemTools::GetLineFromStream()

Fixes: #22278
parent 8732749e
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
#include <cmsys/RegularExpression.hxx>
#include "cmRuntimeDependencyArchive.h"
#include "cmSystemTools.h"
#include "cmUVProcessChain.h"
cmBinUtilsWindowsPEObjdumpGetRuntimeDependenciesTool::
......@@ -42,8 +43,8 @@ bool cmBinUtilsWindowsPEObjdumpGetRuntimeDependenciesTool::GetFileInfo(
std::string line;
static const cmsys::RegularExpression regex(
"^\t*DLL Name: ([^\n]*\\.[Dd][Ll][Ll])\r$");
while (std::getline(*process.OutputStream(), line)) {
"^\t*DLL Name: ([^\n]*\\.[Dd][Ll][Ll])$");
while (cmSystemTools::GetLineFromStream(*process.OutputStream(), line)) {
cmsys::RegularExpressionMatch match;
if (regex.find(line.c_str(), match)) {
needed.push_back(match.match(1));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment