diff options
author | Brad King <brad.king@kitware.com> | 2021-10-15 11:23:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-10-15 11:23:36 (GMT) |
commit | fcebd414efd472295bde3192bff76e6dd17d37ab (patch) | |
tree | 87f2113bf2fb416ef8eb6c1ea411736b42ded016 /Source | |
parent | 3ab9e6e186ae885fb77344b7cc76b1612a0f60ba (diff) | |
parent | 6b12edfe82e014e17e3ea5d612bd8c9e755942f9 (diff) | |
download | CMake-fcebd414efd472295bde3192bff76e6dd17d37ab.zip CMake-fcebd414efd472295bde3192bff76e6dd17d37ab.tar.gz CMake-fcebd414efd472295bde3192bff76e6dd17d37ab.tar.bz2 |
Merge topic 'ifw-disable-cli'
6b12edfe82 CPackIFW: Add support for DisableCommandLineInterface config attribute
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6609
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWInstaller.cxx | 16 | ||||
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWInstaller.h | 3 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.cxx b/Source/CPack/IFW/cmCPackIFWInstaller.cxx index d356f7d..465c38d 100644 --- a/Source/CPack/IFW/cmCPackIFWInstaller.cxx +++ b/Source/CPack/IFW/cmCPackIFWInstaller.cxx @@ -254,6 +254,16 @@ void cmCPackIFWInstaller::ConfigureFromOptions() } } + // DisableCommandLineInterface + if (this->GetOption("CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE")) { + if (this->IsOn("CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE")) { + this->DisableCommandLineInterface = "true"; + } else if (this->IsSetToOff( + "CPACK_IFW_PACKAGE_DISABLE_COMMAND_LINE_INTERFACE")) { + this->DisableCommandLineInterface = "false"; + } + } + // Space in path if (this->GetOption("CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH")) { if (this->IsOn("CPACK_IFW_PACKAGE_ALLOW_SPACE_IN_PATH")) { @@ -518,6 +528,12 @@ void cmCPackIFWInstaller::GenerateInstallerFile() if (!this->WizardShowPageList.empty()) { xout.Element("WizardShowPageList", this->WizardShowPageList); } + + // DisableCommandLineInterface + if (!this->DisableCommandLineInterface.empty()) { + xout.Element("DisableCommandLineInterface", + this->DisableCommandLineInterface); + } } if (!this->RemoveTargetDir.empty()) { diff --git a/Source/CPack/IFW/cmCPackIFWInstaller.h b/Source/CPack/IFW/cmCPackIFWInstaller.h index ad2d472..047f287 100644 --- a/Source/CPack/IFW/cmCPackIFWInstaller.h +++ b/Source/CPack/IFW/cmCPackIFWInstaller.h @@ -109,6 +109,9 @@ public: /// uninstalling std::string RemoveTargetDir; + /// Set to true if command line interface features should be disabled + std::string DisableCommandLineInterface; + /// Set to false if the installation path cannot contain space characters std::string AllowSpaceInPath; |