summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSimon Levermann <Simon.Levermann@governikus.de>2015-11-24 15:17:53 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-02 13:26:01 (GMT)
commitae434ee2dd1a91cd8ec53a631d8db9949d5f46b0 (patch)
tree2b187fb4979b9a1c1e1bc626ff759429aa89b9ae /Modules
parent3c6a3668760ba48dde33f20de08dc6e16cfe7ab3 (diff)
downloadCMake-ae434ee2dd1a91cd8ec53a631d8db9949d5f46b0.zip
CMake-ae434ee2dd1a91cd8ec53a631d8db9949d5f46b0.tar.gz
CMake-ae434ee2dd1a91cd8ec53a631d8db9949d5f46b0.tar.bz2
CPack/DragNDrop: Allow single license for multiple languages
When both CPACK_DMG_SLA_DIR and CPACK_RESOURCE_FILE_LICENSE are defined, use the license file for all languages instead of looking for a license file for each language. Also expand the documentation on the SLA variables.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CPackDMG.cmake20
1 files changed, 19 insertions, 1 deletions
diff --git a/Modules/CPackDMG.cmake b/Modules/CPackDMG.cmake
index 6b5af7e..e34f8cd 100644
--- a/Modules/CPackDMG.cmake
+++ b/Modules/CPackDMG.cmake
@@ -49,11 +49,29 @@
# .. variable:: CPACK_DMG_SLA_DIR
#
# Directory where license and menu files for different languages are stored.
+# Setting this causes CPack to look for a ``<language>.menu.txt`` and
+# ``<language>.license.txt`` file for every language defined in
+# ``CPACK_DMG_SLA_LANGUAGES``. If both this variable and
+# ``CPACK_RESOURCE_FILE_LICENSE`` are set, CPack will only look for the menu
+# files and use the same license file for all languages.
#
# .. variable:: CPACK_DMG_SLA_LANGUAGES
#
# Languages for which a license agreement is provided when mounting the
-# generated DMG.
+# generated DMG. A menu file consists of 9 lines of text. The first line is
+# is the name of the language itself, uppercase, in English (e.g. German).
+# The other lines are translations of the following strings:
+#
+# - Agree
+# - Disagree
+# - Print
+# - Save...
+# - You agree to the terms of the License Agreement when you click the
+# "Agree" button.
+# - Software License Agreement
+# - This text cannot be saved. The disk may be full or locked, or the file
+# may be locked.
+# - Unable to print. Make sure you have selected a printer.
#
# For every language in this list, CPack will try to find files
# ``<language>.menu.txt`` and ``<language>.license.txt`` in the directory