summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallDirectoryGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-24 16:41:40 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-24 16:41:40 (GMT)
commit1595b8e69eac0d2dbab6ac29663a85d8d486a5cc (patch)
treeded9bc2ffe1ee4ca3adb4f19a24534877d908b85 /Source/cmInstallDirectoryGenerator.h
parenta79f8cd4c156b01ef0305a30a9c0ca2dcbf9a1cc (diff)
downloadCMake-1595b8e69eac0d2dbab6ac29663a85d8d486a5cc.zip
CMake-1595b8e69eac0d2dbab6ac29663a85d8d486a5cc.tar.gz
CMake-1595b8e69eac0d2dbab6ac29663a85d8d486a5cc.tar.bz2
ENH: Add install(DIRECTORY) option 'OPTIONAL'
This adds the OPTIONAL option to the install(DIRECTORY) command. It tells the installation rule that it is not an error if the source directory does not exist. See issue #8394.
Diffstat (limited to 'Source/cmInstallDirectoryGenerator.h')
-rw-r--r--Source/cmInstallDirectoryGenerator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallDirectoryGenerator.h b/Source/cmInstallDirectoryGenerator.h
index 9810d56..a1166e1 100644
--- a/Source/cmInstallDirectoryGenerator.h
+++ b/Source/cmInstallDirectoryGenerator.h
@@ -31,7 +31,8 @@ public:
const char* dir_permissions,
std::vector<std::string> const& configurations,
const char* component,
- const char* literal_args);
+ const char* literal_args,
+ bool optional = false);
virtual ~cmInstallDirectoryGenerator();
protected:
@@ -40,6 +41,7 @@ protected:
std::string FilePermissions;
std::string DirPermissions;
std::string LiteralArguments;
+ bool Optional;
};
#endif