aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-08-31 16:29:38 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-08-31 16:29:38 +0300
commita4193bb6d85d7765b1b87faeab3e50106d3ab2e9 (patch)
treeaf2518faeae03b56c4ae9817d53e705f3ba2c7b8
parentBump version number for 5.3.3alpha. (diff)
downloadxz-a4193bb6d85d7765b1b87faeab3e50106d3ab2e9.tar.xz
CMake: Put xz man page install under if(UNIX) like is for xzdec.
Thanks to Jia Tan.
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5dded28c..7f4a1b9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -681,9 +681,11 @@ if(NOT MSVC AND HAVE_GETOPT_LONG)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT xz)
- install(FILES src/xz/xz.1
- DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
- COMPONENT xz)
+ if(UNIX)
+ install(FILES src/xz/xz.1
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
+ COMPONENT xz)
+ endif()
endif()