summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindNSIS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindNSIS.cmake')
-rw-r--r--cmake/modules/FindNSIS.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/modules/FindNSIS.cmake b/cmake/modules/FindNSIS.cmake
new file mode 100644
index 0000000..1b68cd3
--- /dev/null
+++ b/cmake/modules/FindNSIS.cmake
@@ -0,0 +1,13 @@
+#
+# - Find NSIS
+# Find the makensis command
+#
+# MAKENSIS_EXECUTABLE - path to the makensis utility.
+# CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS - System runtime DLLs
+
+# Find makensis
+set(_PF86 "PROGRAMFILES(x86)")
+find_program(MAKENSIS_EXECUTABLE makensis
+ PATH "$ENV{PROGRAMFILES}/NSIS" "$ENV{${_PF86}}/NSIS" "$ENV{PROGRAMW6432}/NSIS"
+ DOC "Path to the makensis utility."
+)