diff options
author | Brad King <brad.king@kitware.com> | 2023-07-18 14:29:37 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-07-18 14:29:57 (GMT) |
commit | e9659abde1e6030fa48731860bd0390e096060d4 (patch) | |
tree | cddb407f80c56d213ba78024311b37ca20c0663c | |
parent | e21ea927982d51202a86b2caf9c4ca4daf84d239 (diff) | |
parent | c80190c6abc177149bfca31242a1d2eb4ca79b8f (diff) | |
download | CMake-e9659abde1e6030fa48731860bd0390e096060d4.zip CMake-e9659abde1e6030fa48731860bd0390e096060d4.tar.gz CMake-e9659abde1e6030fa48731860bd0390e096060d4.tar.bz2 |
Merge topic 'innosetup-component-install'
c80190c6ab InnoSetup: Always specify at least one component installation type
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8630
-rw-r--r-- | Source/CPack/cmCPackInnoSetupGenerator.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/CPack/cmCPackInnoSetupGenerator.cxx b/Source/CPack/cmCPackInnoSetupGenerator.cxx index 5d2c208..ada9a5b 100644 --- a/Source/CPack/cmCPackInnoSetupGenerator.cxx +++ b/Source/CPack/cmCPackInnoSetupGenerator.cxx @@ -583,10 +583,8 @@ bool cmCPackInnoSetupGenerator::ProcessComponents() "this script uses components }"); // Installation types - bool noTypes = true; std::vector<cmCPackInstallationType*> types(InstallationTypes.size()); for (auto& i : InstallationTypes) { - noTypes = false; types[i.second.Index - 1] = &i.second; } @@ -601,17 +599,16 @@ bool cmCPackInnoSetupGenerator::ProcessComponents() typeInstructions.push_back(ISKeyValueLine(params)); } - if (!noTypes) { - // Inno Setup requires the "custom" type - cmCPackInnoSetupKeyValuePairs params; + // Inno Setup requires the additional "custom" type + cmCPackInnoSetupKeyValuePairs customTypeParams; - params["Name"] = "\"custom\""; - params["Description"] = "\"{code:CPackGetCustomInstallationMessage}\""; - params["Flags"] = "iscustom"; + customTypeParams["Name"] = "\"custom\""; + customTypeParams["Description"] = + "\"{code:CPackGetCustomInstallationMessage}\""; + customTypeParams["Flags"] = "iscustom"; - allTypes.push_back("custom"); - typeInstructions.push_back(ISKeyValueLine(params)); - } + allTypes.push_back("custom"); + typeInstructions.push_back(ISKeyValueLine(customTypeParams)); // Components std::vector<cmCPackComponent*> downloadedComponents; |