Skip to content

Commit d3e71b6

Browse files
committed
Use 7z as CPack generator for Windows
1 parent cc51a8e commit d3e71b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/XRay.Packaging.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ set(CPACK_SOURCE_IGNORE_FILES "/.gitattributes")
1111
set(CPACK_RESOURCE_FILE_README ${PROJECT_SOURCE_DIR}/README.md)
1212
set(CPACK_RESOURCE_FILE_LICENSE ${PROJECT_SOURCE_DIR}/License.txt)
1313

14-
if (UNIX)
14+
if (WIN32)
15+
set(CPACK_GENERATOR 7Z)
16+
include(CPack)
17+
elseif (UNIX)
1518
# Try to find specific OS files to determine type of linux distribution
1619
find_file(FEDORA_FOUND fedora-release PATHS /etc)
1720
find_file(REDHAT_FOUND redhat-release inittab.RH PATHS /etc)

0 commit comments

Comments
 (0)