summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
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)
{