From 0798a177ea2c2989d9b98e390a375f98288e6f0b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 2 Nov 2000 11:13:23 -0500 Subject: BUG: make sure SOURCE_FILES starts at the begining of line --- Source/cmMakefile.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index c4eab57..c3ca105 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -42,7 +42,8 @@ bool cmMakefile::ReadMakefile(const char* filename) { std::string line = inbuffer; cmClassFile file; - if(line.find("SOURCE_FILES") != std::string::npos) + std::string::size_type pos = line.find("SOURCE_FILES"); + if((pos != std::string::npos) && (pos == 0 ) ) { if(line.find("\\") != std::string::npos) { -- cgit v0.12