[cmake-commits] andy committed cmDependsC.cxx 1.28 1.29
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Sep 26 08:04:27 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv30883/Source
Modified Files:
cmDependsC.cxx
Log Message:
BUG: Handle header file dependencies for objective C
Index: cmDependsC.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDependsC.cxx,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- cmDependsC.cxx 16 Sep 2006 15:54:19 -0000 1.28
+++ cmDependsC.cxx 26 Sep 2006 12:04:23 -0000 1.29
@@ -33,7 +33,7 @@
const char* scanRegex, const char* complainRegex,
const cmStdString& cacheFileName):
IncludePath(&includes),
- IncludeRegexLine("^[ \t]*#[ \t]*include[ \t]*[<\"]([^\">]+)([\">])"),
+ IncludeRegexLine("^[ \t]*#[ \t]*(include|import)[ \t]*[<\"]([^\">]+)([\">])"),
IncludeRegexScan(scanRegex),
IncludeRegexComplain(complainRegex),
CacheFileName(cacheFileName)
@@ -354,8 +354,8 @@
{
// Get the file being included.
UnscannedEntry entry;
- entry.FileName = this->IncludeRegexLine.match(1);
- if(this->IncludeRegexLine.match(2) == "\"" &&
+ entry.FileName = this->IncludeRegexLine.match(2);
+ if(this->IncludeRegexLine.match(3) == "\"" &&
!cmSystemTools::FileIsFullPath(entry.FileName.c_str()))
{
// This was a double-quoted include with a relative path. We
More information about the Cmake-commits
mailing list