summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-11-02 16:13:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-11-02 16:13:23 (GMT)
commit0798a177ea2c2989d9b98e390a375f98288e6f0b (patch)
treea207cae829608a15e1fab8296dc4d405c74849a4 /Source/cmMakefile.cxx
parent6737f7277f61778c7465cc0d98d06dfb99d5f905 (diff)
downloadCMake-0798a177ea2c2989d9b98e390a375f98288e6f0b.zip
CMake-0798a177ea2c2989d9b98e390a375f98288e6f0b.tar.gz
CMake-0798a177ea2c2989d9b98e390a375f98288e6f0b.tar.bz2
BUG: make sure SOURCE_FILES starts at the begining of line
Diffstat (limited to 'Source/cmMakefile.cxx')
-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)
{