summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-23 13:10:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-23 13:11:05 (GMT)
commitec5f76753ad92ac03a4581d67a302792e030b6c4 (patch)
treeca27cb50d035e6b5e44f2f14e6767c684cbf76b4 /Source
parent581402f00c32172f8f74086ccfb26b20cf08dc5a (diff)
parent8e8b99d01a6b2ce266a9401f760f4814a69e4853 (diff)
downloadCMake-ec5f76753ad92ac03a4581d67a302792e030b6c4.zip
CMake-ec5f76753ad92ac03a4581d67a302792e030b6c4.tar.gz
CMake-ec5f76753ad92ac03a4581d67a302792e030b6c4.tar.bz2
Merge topic 'cpack_nsis_executable_custom'
8e8b99d01a CPack/NSIS: Add option for setting custom makensis executable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5839
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackNSISGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
index 263adfd..9b00704 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -430,7 +430,9 @@ int cmCPackNSISGenerator::InitializeInternal()
}
#endif
- nsisPath = cmSystemTools::FindProgram("makensis", path, false);
+ this->SetOptionIfNotSet("CPACK_NSIS_EXECUTABLE", "makensis");
+ nsisPath = cmSystemTools::FindProgram(
+ this->GetOption("CPACK_NSIS_EXECUTABLE"), path, false);
if (nsisPath.empty()) {
cmCPackLogger(