ENH: when trying to find a FooConfig.cmake file, if in the directory pointed

to by the Foo_DIR variable there is no FooConfig.cmake file, then instead of
abort and complain that the user should set or clear the Foo_DIR variables,
just search for the file and discard the old Foo_DIR contents

The tests succeed, ok by Brad.

Alex
This commit is contained in:
Alexander Neundorf
2009-01-08 17:57:52 -05:00
parent 206c09c4f6
commit ef3e48c3d5
2 changed files with 36 additions and 58 deletions

View File

@@ -97,7 +97,6 @@ private:
bool SearchDirectory(std::string const& dir);
bool CheckDirectory(std::string const& dir);
bool FindConfigFile(std::string const& dir, std::string& file);
bool FindConfigFileToLoad(std::string const& dir, std::string& file);
bool CheckVersion(std::string const& config_file);
bool CheckVersionFile(std::string const& version_file);
bool SearchPrefix(std::string const& prefix);