ENH: Added OPTIONAL option to INSTALL command to allow installation of files if they exist while ignoring them otherwise. This addresses bug#2922.

This commit is contained in:
Brad King
2006-10-05 11:31:57 -04:00
parent 16b781360c
commit 934c804ea4
8 changed files with 75 additions and 18 deletions
+3 -1
View File
@@ -32,7 +32,8 @@ public:
const char* file_permissions = "",
std::vector<std::string> const& configurations
= std::vector<std::string>(),
const char* component = ""
const char* component = "",
bool optional = false
);
virtual ~cmInstallTargetGenerator();
@@ -50,6 +51,7 @@ protected:
std::string FilePermissions;
std::vector<std::string> Configurations;
std::string Component;
bool Optional;
};
#endif