diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2000-11-02 16:13:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2000-11-02 16:13:23 (GMT) |
commit | 0798a177ea2c2989d9b98e390a375f98288e6f0b (patch) | |
tree | a207cae829608a15e1fab8296dc4d405c74849a4 /Source/cmMakefile.cxx | |
parent | 6737f7277f61778c7465cc0d98d06dfb99d5f905 (diff) | |
download | CMake-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.cxx | 3 |
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) { |