summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorRichard Ulrich <richi@paraeasy.ch>2013-05-06 15:21:42 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-19 18:50:43 (GMT)
commitbfa2e299ae9a8687c6f13e701c87e68b9e4a5054 (patch)
treedc1e30699139e0cdfdbb8ea28bbcf1c91285bdaf /Source/CPack
parent6e51ea9870658ca39e9b3050caada121519da673 (diff)
downloadCMake-bfa2e299ae9a8687c6f13e701c87e68b9e4a5054.zip
CMake-bfa2e299ae9a8687c6f13e701c87e68b9e4a5054.tar.gz
CMake-bfa2e299ae9a8687c6f13e701c87e68b9e4a5054.tar.bz2
CPackWIX: Add option to specify the language(s) of the installer
Add option "CPACK_WIX_CULTURES".
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/WiX/cmCPackWIXGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
index cfb655b..373a14d 100644
--- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx
+++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx
@@ -100,6 +100,11 @@ bool cmCPackWIXGenerator::RunLightCommand(const std::string& objectFiles)
command << " -nologo";
command << " -out " << QuotePath(packageFileNames.at(0));
command << " -ext WixUIExtension";
+ const char* const cultures = GetOption("CPACK_WIX_CULTURES");
+ if(cultures)
+ {
+ command << " -cultures:" << cultures;
+ }
command << " " << objectFiles;
return RunWiXCommand(command.str());