From: Lasse Collin Date: Wed, 31 Aug 2022 13:29:38 +0000 (+0300) Subject: CMake: Put xz man page install under if(UNIX) like is for xzdec. X-Git-Tag: v5.2.7~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3523b6ebb56c447f21736f01bfe91602741aa3e7;p=thirdparty%2Fxz.git CMake: Put xz man page install under if(UNIX) like is for xzdec. Thanks to Jia Tan. --- 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()