diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-11-02 16:42:41 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-11-07 19:08:48 (GMT) |
commit | 9fc20a4f3e1865e409d960c87e2e4a366775b72b (patch) | |
tree | 5ea698da30b881b7ad4db2e3770e27727f93fcb9 /Source/cmInstallCommandArguments.h | |
parent | 71db32660eed1f70c06b624e661f8f5c2b938907 (diff) | |
download | CMake-9fc20a4f3e1865e409d960c87e2e4a366775b72b.zip CMake-9fc20a4f3e1865e409d960c87e2e4a366775b72b.tar.gz CMake-9fc20a4f3e1865e409d960c87e2e4a366775b72b.tar.bz2 |
install: Add sane set of defaults for DESTINATION and file type parameters
If the user does not specify a DESTINATION for a target type, the
install() command checks to see if the appropriate variable from
GNUInstallDirs is set. If it is not, then it uses an appropriate
hard-coded guess.
In addition, for FILES and DIRECTORY, the user can specify a file
type instead of a DESTINATION, and the command will use the
appropriate variable from GNUInstallDirs, or a hard-coded guess if
it is not set.
Diffstat (limited to 'Source/cmInstallCommandArguments.h')
-rw-r--r-- | Source/cmInstallCommandArguments.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmInstallCommandArguments.h b/Source/cmInstallCommandArguments.h index ee6e865..425e58a 100644 --- a/Source/cmInstallCommandArguments.h +++ b/Source/cmInstallCommandArguments.h @@ -35,6 +35,7 @@ public: bool GetNamelinkOnly() const; bool GetNamelinkSkip() const; bool HasNamelinkComponent() const; + const std::string& GetType() const; // once HandleDirectoryMode() is also switched to using // cmInstallCommandArguments then these two functions can become non-static @@ -55,6 +56,7 @@ private: cmCAEnabler Optional; cmCAEnabler NamelinkOnly; cmCAEnabler NamelinkSkip; + cmCAString Type; std::string DestinationString; std::string PermissionsString; |