From 74d315077cda809777ec6398c1d2a2d99ca99d4c Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 21 Feb 2006 09:35:11 -0500 Subject: ENH: use last mount point found for mingw location, not first --- Source/cmGlobalMSYSMakefileGenerator.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/cmGlobalMSYSMakefileGenerator.cxx b/Source/cmGlobalMSYSMakefileGenerator.cxx index 3bfa12d..d0b9f37 100644 --- a/Source/cmGlobalMSYSMakefileGenerator.cxx +++ b/Source/cmGlobalMSYSMakefileGenerator.cxx @@ -33,17 +33,18 @@ cmGlobalMSYSMakefileGenerator::FindMinGW(std::string const& makeloc) std::ifstream fin(fstab.c_str()); std::string path; std::string mount; + std::string mingwBin; while(fin) { fin >> path; fin >> mount; if(mount == "/mingw") { - path += "/bin"; - return path; + mingwBin = path; + mingwBin += "/bin"; } } - return ""; + return mingwBin; } void cmGlobalMSYSMakefileGenerator::EnableLanguage(std::vectorconst& l, -- cgit v0.12