diff options
author | Brad King <brad.king@kitware.com> | 2008-06-09 16:51:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-09 16:51:01 (GMT) |
commit | 2cadc9138fc405fe49fb3f8cb4153b9c20c95df6 (patch) | |
tree | ef20609f00e1a14f9819c62de87a1b1f47a058c1 /Source/cmFindPathCommand.cxx | |
parent | 6706f84cd997d39026080e47e4944072add7f925 (diff) | |
download | CMake-2cadc9138fc405fe49fb3f8cb4153b9c20c95df6.zip CMake-2cadc9138fc405fe49fb3f8cb4153b9c20c95df6.tar.gz CMake-2cadc9138fc405fe49fb3f8cb4153b9c20c95df6.tar.bz2 |
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
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r-- | Source/cmFindPathCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 5e618c6..2ca4fbb 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/<file> cmStdString glob = dir; - glob += "*/Headers/"; + glob += "*.framework/Headers/"; glob += file; cmsys::Glob globIt; globIt.FindFiles(glob); |