summaryrefslogtreecommitdiffstats
path: root/Help/cpack_gen
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2022-09-24 20:42:09 (GMT)
committerJohnny Jazeix <jazeix@gmail.com>2022-09-26 15:58:12 (GMT)
commitd1613ac880df62b171f7f929d98dfaa62dd78417 (patch)
tree243952b99a3c9f44df59231092b501db71b0ab09 /Help/cpack_gen
parentc87fb83426228fed2f6fb0109d810910f53da65b (diff)
downloadCMake-d1613ac880df62b171f7f929d98dfaa62dd78417.zip
CMake-d1613ac880df62b171f7f929d98dfaa62dd78417.tar.gz
CMake-d1613ac880df62b171f7f929d98dfaa62dd78417.tar.bz2
CPack/NSIS: Add options to set makensis arguments
Fixes: #23446
Diffstat (limited to 'Help/cpack_gen')
-rw-r--r--Help/cpack_gen/nsis.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/Help/cpack_gen/nsis.rst b/Help/cpack_gen/nsis.rst
index 299cfec..df306c2 100644
--- a/Help/cpack_gen/nsis.rst
+++ b/Help/cpack_gen/nsis.rst
@@ -207,3 +207,34 @@ on Windows Nullsoft Scriptable Install System.
.. versionadded:: 3.22
If set, do not display the page containing the license during installation.
+
+.. variable:: CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS
+
+ .. versionadded:: 3.25
+
+ This variable is a :ref:`semicolon-separated list <CMake Language Lists>` of
+ arguments to prepend to the nsis script to run.
+ If the arguments do not start with a ``/`` or a ``-``, it will add one
+ automatically to the corresponding arguments.
+ The command that will be run is::
+
+ makensis.exe <preArgs>... "nsisFileName.nsi" <postArgs>...
+
+ where ``<preArgs>...`` is constructed from ``CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS``
+ and ``<postArgs>...`` is constructed from ``CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS``.
+
+
+.. variable:: CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS
+
+ .. versionadded:: 3.25
+
+ This variable is a :ref:`semicolon-separated list <CMake Language Lists>` of
+ arguments to append to the nsis script to run.
+ If the arguments do not start with a ``/`` or a ``-``, it will add one
+ automatically to the corresponding arguments.
+ The command that will be run is::
+
+ makensis.exe <preArgs>... "nsisFileName.nsi" <postArgs>...
+
+ where ``<preArgs>...`` is constructed from ``CPACK_NSIS_EXECUTABLE_PRE_ARGUMENTS``
+ and ``<postArgs>...`` is constructed from ``CPACK_NSIS_EXECUTABLE_POST_ARGUMENTS``.