diff options
author | Brad King <brad.king@kitware.com> | 2008-06-05 22:20:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-06-05 22:20:16 (GMT) |
commit | 789c167b6f4d7cc630be4baa78d14a8688722ddd (patch) | |
tree | a22d09e3030b1a301cdd957751bd31c732f6fe94 /Source/cmFindPackageCommand.h | |
parent | 3ecfb5f7e8e57d4c273d25eeaaecffea2cf51d09 (diff) | |
download | CMake-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/cmFindPackageCommand.h')
-rw-r--r-- | Source/cmFindPackageCommand.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h index 5581651..142ddda 100644 --- a/Source/cmFindPackageCommand.h +++ b/Source/cmFindPackageCommand.h @@ -82,8 +82,14 @@ private: bool ReadListFile(const char* f); void StoreVersionFound(); - void AddUserPath(std::string const& p); void ComputePrefixes(); + void AddPrefixesCMakeEnvironment(); + void AddPrefixesCMakeVariable(); + void AddPrefixesSystemEnvironment(); + void AddPrefixesBuilds(); + void AddPrefixesCMakeSystemVariable(); + void AddPrefixesUser(); + void ComputeFinalPrefixes(); bool SearchDirectory(std::string const& dir); bool CheckDirectory(std::string const& dir); bool FindConfigFile(std::string const& dir, std::string& file); @@ -119,8 +125,6 @@ private: bool DebugMode; std::vector<std::string> Names; std::vector<std::string> Configs; - std::vector<std::string> Prefixes; - std::vector<std::string> UserPaths; }; #endif |