diff options
author | Johnny Jazeix <jazeix@gmail.com> | 2021-02-21 15:29:11 (GMT) |
---|---|---|
committer | Johnny Jazeix <jazeix@gmail.com> | 2021-02-22 16:59:04 (GMT) |
commit | 8e8b99d01a6b2ce266a9401f760f4814a69e4853 (patch) | |
tree | 56286b6821969625a59ff4a729b31a1cb3c474f7 /Source/CPack/cmCPackNSISGenerator.cxx | |
parent | 7aad4df2ff3bb18817e480372d484f8977036033 (diff) | |
download | CMake-8e8b99d01a6b2ce266a9401f760f4814a69e4853.zip CMake-8e8b99d01a6b2ce266a9401f760f4814a69e4853.tar.gz CMake-8e8b99d01a6b2ce266a9401f760f4814a69e4853.tar.bz2 |
CPack/NSIS: Add option for setting custom makensis executable
It allows users to set a custom one without changing the PATH environment variable.
Fixes: #21733
Diffstat (limited to 'Source/CPack/cmCPackNSISGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackNSISGenerator.cxx | 4 |
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( |