1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

CMake: Put xz man page install under if(UNIX) like is for xzdec.

Thanks to Jia Tan.
This commit is contained in:
Lasse Collin 2022-08-31 16:29:38 +03:00
parent 5af9e8759f
commit 3523b6ebb5

View file

@ -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()