diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx index 1725c586b..577ebad2b 100644 --- a/Source/cmDependsFortran.cxx +++ b/Source/cmDependsFortran.cxx @@ -453,7 +453,8 @@ cmDependsFortran i != info.Requires.end(); ++i) { // Require only modules not provided in the same source. - if(info.Provides.find(*i) != info.Provides.end()) + if(std::set::const_iterator(info.Provides.find(*i)) != + info.Provides.end()) { continue; }