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 c1555b1a22
commit a4193bb6d8
1 changed files with 5 additions and 3 deletions

View File

@ -681,10 +681,12 @@ if(NOT MSVC AND HAVE_GETOPT_LONG)
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT xz) COMPONENT xz)
if(UNIX)
install(FILES src/xz/xz.1 install(FILES src/xz/xz.1
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT xz) COMPONENT xz)
endif() endif()
endif()
############################################################################# #############################################################################