From 2cadc9138fc405fe49fb3f8cb4153b9c20c95df6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 9 Jun 2008 12:51:01 -0400 Subject: ENH: Improve framework search speed for find_file and find_path - Locating a header inside a framework often requires globbing - Previously the glob was /*/Headers/ - Now the glob is /*.framework/Headers/ - This is much faster when is not really a framework dir --- Source/cmFindPathCommand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/cmFindPathCommand.cxx') diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 5e618c6bfe..2ca4fbb23f 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); -- cgit v1.2.1