summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-06-05 22:20:16 (GMT)
committerBrad King <brad.king@kitware.com>2008-06-05 22:20:16 (GMT)
commit789c167b6f4d7cc630be4baa78d14a8688722ddd (patch)
treea22d09e3030b1a301cdd957751bd31c732f6fe94 /Source/cmFindCommon.h
parent3ecfb5f7e8e57d4c273d25eeaaecffea2cf51d09 (diff)
downloadCMake-789c167b6f4d7cc630be4baa78d14a8688722ddd.zip
CMake-789c167b6f4d7cc630be4baa78d14a8688722ddd.tar.gz
CMake-789c167b6f4d7cc630be4baa78d14a8688722ddd.tar.bz2
ENH: Refactor cmFindCommon, cmFindBase, and cmFindPackageCommand
- Add each part of the search order in a separate method. - Collect added paths in an ivar in cmFindCommon. - Move user path storage up to cmFindCommon and share between cmFindBase and cmFindPackageCommand. - Expand user path registry values up in cmFindCommon - Enables 32-/64-bit registry view for find_package - Disables registry expansion for paths not specified with the PATHS argument, which is not expected.
Diffstat (limited to 'Source/cmFindCommon.h')
-rw-r--r--Source/cmFindCommon.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/Source/cmFindCommon.h b/Source/cmFindCommon.h
index 962a017..e141a08 100644
--- a/Source/cmFindCommon.h
+++ b/Source/cmFindCommon.h
@@ -55,21 +55,12 @@ protected:
bool CheckCommonArgument(std::string const& arg);
void AddPathSuffix(std::string const& arg);
- void GetAppBundlePaths(std::vector<std::string>& paths);
- void GetFrameworkPaths(std::vector<std::string>& paths);
-
- void AddCMakePath(std::vector<std::string>& out_paths,
- const char* variable, std::set<cmStdString>* emmitted = 0);
- void AddEnvPath(std::vector<std::string>& out_paths,
- const char* variable, std::set<cmStdString>* emmitted = 0);
- void AddPathsInternal(std::vector<std::string>& out_paths,
- std::vector<std::string> const& in_paths,
- PathType pathType,
- std::set<cmStdString>* emmitted = 0);
- void AddPathInternal(std::vector<std::string>& out_paths,
- std::string const& in_path,
- PathType pathType,
- std::set<cmStdString>* emmitted = 0);
+ void AddUserPath(std::string const& p);
+ void AddCMakePath(const char* variable);
+ void AddEnvPath(const char* variable);
+ void AddPathsInternal(std::vector<std::string> const& in_paths,
+ PathType pathType);
+ void AddPathInternal(std::string const& in_path, PathType pathType);
bool NoDefaultPath;
bool NoCMakePath;
@@ -78,6 +69,9 @@ protected:
bool NoCMakeSystemPath;
std::vector<std::string> SearchPathSuffixes;
+ std::vector<std::string> UserPaths;
+ std::vector<std::string> SearchPaths;
+ std::set<cmStdString> SearchPathsEmitted;
std::string GenericDocumentationMacPolicy;
std::string GenericDocumentationRootPath;