summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPathCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-09 16:51:01 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-09 16:51:01 (GMT)
commit2cadc9138fc405fe49fb3f8cb4153b9c20c95df6 (patch)
treeef20609f00e1a14f9819c62de87a1b1f47a058c1 /Source/cmFindPathCommand.cxx
parent6706f84cd997d39026080e47e4944072add7f925 (diff)
downloadCMake-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.cxx4
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);