aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
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-09-16 15:32:55 +0300
commit3523b6ebb56c447f21736f01bfe91602741aa3e7 (patch)
tree82c76fe1ac60a23801b6f9cac7ac6348fff0ed8f /CMakeLists.txt
parentTranslations: Add Turkish translation. (diff)
downloadxz-3523b6ebb56c447f21736f01bfe91602741aa3e7.tar.xz
CMake: Put xz man page install under if(UNIX) like is for xzdec.
Thanks to Jia Tan.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 49fcd777..a62823c6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -678,7 +678,9 @@ 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()