cpack: generate the shell install only on UNIX
[m6w6/libmemcached] / 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)