diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 5e618c6bf..2ca4fbb23 100644 --- a/Source/cmFindPathCommand.cxx +++ b/Source/cmFindPathCommand.cxx @@ -176,9 +176,9 @@ cmFindPathCommand::FindHeaderInFramework(std::string const& file, } } // if it is not found yet or not a framework header, then do a glob search - // for all files in dir/*/Headers/ + // for all frameworks in the directory: dir/*.framework/Headers/ cmStdString glob = dir; - glob += "*/Headers/"; + glob += "*.framework/Headers/"; glob += file; cmsys::Glob globIt; globIt.FindFiles(glob);