Skip to content

Commit 36871f0

Browse files
committed
Enable manpages on all UNIX and make man path customizable
1 parent 1cef4ba commit 36871f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ if(NOT A2X_EXECUTABLE STREQUAL "A2X_EXECUTABLE-NOTFOUND")
420420
DEPENDS resources/${MAN_NAME}.adoc
421421
COMMENT "(Re-)building manpage ${MAN_NAME}"
422422
VERBATIM)
423-
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
423+
if(UNIX)
424424
add_custom_target(man ALL DEPENDS resources/${MAN_NAME})
425-
install(FILES resources/${MAN_NAME} DESTINATION share/man/man6)
425+
install(FILES resources/${MAN_NAME} DESTINATION ${CMAKE_INSTALL_MANDIR}/man6)
426426
else()
427427
add_custom_target(man DEPENDS resources/${MAN_NAME})
428428
endif()

0 commit comments

Comments
 (0)