blob: 750ed4f712a323f87d9bf8f33dd4513295731fec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt
index f1fc334..7ee58ed 100644
--- a/man/man8/CMakeLists.txt
+++ b/man/man8/CMakeLists.txt
@@ -1,12 +1,3 @@
-find_program(GZIP gzip)
file(GLOB FILES *.8)
-set(GZFILES "")
-foreach(FIL ${FILES})
- get_filename_component(NAME ${FIL} NAME)
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- DEPENDS ${FIL})
- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz")
-endforeach()
add_custom_target(man ALL DEPENDS ${GZFILES})
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|