Browse Source

COMP: Work-around iterator/const_iterator comparison problem on Borland 5.5.

Brad King 20 years ago
parent
commit
a5d1e0ef58
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmDependsC.cxx

+ 2 - 1
Source/cmDependsC.cxx

@@ -359,7 +359,8 @@ bool cmDependsC::FileExistsOrIsGenerated(const std::string& fname,
 {
   // Check first for a generated file.
   if(m_GeneratedFiles &&
-     m_GeneratedFiles->find(fname) != m_GeneratedFiles->end())
+     std::set<cmStdString>::const_iterator(m_GeneratedFiles->find(fname)) !=
+     m_GeneratedFiles->end())
     {
     // If the file does not really exist yet pretend it has already
     // been scanned.  When it exists later then dependencies will be