cpack: generate the shell install only on UNIX
authorMichael Wallner <mike@php.net>
Fri, 11 Dec 2020 20:15:59 +0000 (21:15 +0100)
committerMichael Wallner <mike@php.net>
Fri, 11 Dec 2020 20:15:59 +0000 (21:15 +0100)
CPack.txt

index fae9db37bcc86ffd42dad2577c277e65a05996bc..2e31163bbb2cbc69662bd0c319884185710f4f60 100644 (file)
--- a/CPack.txt
+++ b/CPack.txt
@@ -19,8 +19,11 @@ if(EXISTS /usr/bin/dnf OR EXISTS /usr/bin/yum OR EXISTS /usr/bin/rpm-build)
     set(CPACK_BINARY_RPM ON)
 endif()
 
+if (EXISTS CPackNSIS.txt)
+    include(CPackNSIS.txt)
+
 # shell installer
-set(CPACK_BINARY_STGZ ON)
+set(CPACK_BINARY_STGZ ${UNIX})
 
 # binary archive
 set(CPACK_BINARY_TBZ2 0)