mirror of
https://github.com/reactos/CMake.git
synced 2025-02-01 17:42:41 +00:00
ENH: Improve framework search speed for find_file and find_path
- Locating a header inside a framework often requires globbing - Previously the glob was <dir>/*/Headers/<name> - Now the glob is <dir>/*.framework/Headers/<name> - This is much faster when <dir> is not really a framework dir
This commit is contained in:
parent
6706f84cd9
commit
2cadc9138f
@ -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
|
// 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/<file>
|
||||||
cmStdString glob = dir;
|
cmStdString glob = dir;
|
||||||
glob += "*/Headers/";
|
glob += "*.framework/Headers/";
|
||||||
glob += file;
|
glob += file;
|
||||||
cmsys::Glob globIt;
|
cmsys::Glob globIt;
|
||||||
globIt.FindFiles(glob);
|
globIt.FindFiles(glob);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user