mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 00:59:19 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user