ENH: Send all file installations through one path

This creates a single cmFileInstaller method to dispatch installation of
symlinks, directories, and files.  The change removes duplicate tests of
input file type and makes the decision more consistent.
This commit is contained in:
Brad King
2009-04-29 08:47:13 -04:00
parent bc6eec18dc
commit 97263b6cdd
2 changed files with 81 additions and 100 deletions

View File

@@ -186,15 +186,13 @@ protected:
int& itype,
std::string& destination,
std::string& rename,
std::vector<std::string>& files,
bool& optional
std::vector<std::string>& files
);
bool DoInstall(cmFileInstaller& installer,
const int itype,
const std::string& rename,
const std::string& destination,
const std::vector<std::string>& files,
const bool optional
const std::vector<std::string>& files
);
bool HandleDownloadCommand(std::vector<std::string> const& args);
void GetTargetTypeFromString(const std::string& stype, int& itype) const;