summaryrefslogtreecommitdiffstats
path: root/Source/cmFindPackageCommand.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-08-29 15:07:39 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-08-29 15:07:39 (GMT)
commitdfe9c95129b9ca05ea8ca98e69d973c9c40e5a4e (patch)
tree3b9abcea94d2762b138e6ef628a9bbff809596d5 /Source/cmFindPackageCommand.h
parent737261785a85f365c28ce4fb3da7695f8c09e139 (diff)
downloadCMake-dfe9c95129b9ca05ea8ca98e69d973c9c40e5a4e.zip
CMake-dfe9c95129b9ca05ea8ca98e69d973c9c40e5a4e.tar.gz
CMake-dfe9c95129b9ca05ea8ca98e69d973c9c40e5a4e.tar.bz2
Record all considered Config files and their versions.
As suggested on cmake-devel, find_package in Config-mode now records all considered config-files and their versions in <package>_CONSIDERED_CONFIGS and <package>_CONSIDERED_VERSIONS respectively. Alex
Diffstat (limited to 'Source/cmFindPackageCommand.h')
-rw-r--r--Source/cmFindPackageCommand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFindPackageCommand.h b/Source/cmFindPackageCommand.h
index 53ea4fc..2495d6c 100644
--- a/Source/cmFindPackageCommand.h
+++ b/Source/cmFindPackageCommand.h
@@ -98,7 +98,8 @@ private:
bool CheckDirectory(std::string const& dir);
bool FindConfigFile(std::string const& dir, std::string& file);
bool CheckVersion(std::string const& config_file);
- bool CheckVersionFile(std::string const& version_file);
+ bool CheckVersionFile(std::string const& version_file,
+ std::string& result_version);
bool SearchPrefix(std::string const& prefix);
bool SearchFrameworkPrefix(std::string const& prefix_in);
bool SearchAppBundlePrefix(std::string const& prefix_in);
@@ -137,6 +138,8 @@ private:
std::vector<std::string> Names;
std::vector<std::string> Configs;
std::set<std::string> IgnoredPaths;
+ std::vector<std::string> ConsideredConfigFiles;
+ std::vector<std::string> ConsideredVersions;
};
#endif