diff --git a/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx b/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx index cb4ec31b7b..b36888d553 100644 --- a/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx +++ b/Source/cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool.cxx @@ -44,7 +44,7 @@ bool cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool::GetFileInfo( std::string line; static cmsys::RegularExpression const regex( - "^ ([^\n]*\\.[Dd][Ll][Ll])\r$"); + "^ ([^\n]*\\.[Dd][Ll][Ll])\r?$"); cmUVIStream output(process.OutputStream()); while (std::getline(output, line)) { cmsys::RegularExpressionMatch match;