summaryrefslogtreecommitdiffstats
path: root/Tests/CPackComponents/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-10 15:05:13 (GMT)
committerBrad King <brad.king@kitware.com>2011-01-11 20:42:42 (GMT)
commit5a9e8e701e6e55ddacbc465f4bfb0da3d028ccb0 (patch)
tree6381744e0c017f9c82be88f00779199f7676e528 /Tests/CPackComponents/CMakeLists.txt
parent1bbe4e69171f3155f262bb12f15437db4b71c207 (diff)
downloadCMake-5a9e8e701e6e55ddacbc465f4bfb0da3d028ccb0.zip
CMake-5a9e8e701e6e55ddacbc465f4bfb0da3d028ccb0.tar.gz
CMake-5a9e8e701e6e55ddacbc465f4bfb0da3d028ccb0.tar.bz2
CPack: Add CPACK_NSIS_INSTALL_ROOT variable (#9148)
Control the root directory of the default directory presented to the end user of an NSIS installer by a CPack variable. Previously, the value used in the NSIS script was $PROGRAMFILES, which is equivalent to the "ProgramFiles" environment variable. That default value is still the same, but now a project may override the value by setting this new variable.
Diffstat (limited to 'Tests/CPackComponents/CMakeLists.txt')
-rw-r--r--Tests/CPackComponents/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CPackComponents/CMakeLists.txt b/Tests/CPackComponents/CMakeLists.txt
index bbe834d..58f5bdf 100644
--- a/Tests/CPackComponents/CMakeLists.txt
+++ b/Tests/CPackComponents/CMakeLists.txt
@@ -78,6 +78,9 @@ set(CPACK_NSIS_MENU_LINKS
"news://newsserver" "Test News Link"
)
+# Suggested default root for end users of the installer:
+set(CPACK_NSIS_INSTALL_ROOT "C:\\Program Files\\CMake Tests Install Root")
+
# Include CPack to introduce the appropriate targets
include(CPack)