summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-09-26 12:04:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-09-26 12:04:23 (GMT)
commite10f739571589c392ac6d4f8bafcd909fdce1add (patch)
tree55a0ca2bf50086f04f9dc00a8681149115c91349
parent2912432cbc23a3d0584cf7abd50d293888f70bf3 (diff)
downloadCMake-e10f739571589c392ac6d4f8bafcd909fdce1add.zip
CMake-e10f739571589c392ac6d4f8bafcd909fdce1add.tar.gz
CMake-e10f739571589c392ac6d4f8bafcd909fdce1add.tar.bz2
BUG: Handle header file dependencies for objective C
-rw-r--r--Source/cmDependsC.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx
index e9e9594..18b36b6 100644
--- a/Source/cmDependsC.cxx
+++ b/Source/cmDependsC.cxx
@@ -33,7 +33,7 @@ cmDependsC::cmDependsC(std::vector<std::string> const& includes,
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 @@ void cmDependsC::Scan(std::istream& is, const char* directory,
{
// 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