[doc] CMake: Perl modules' man pages go to man3
The manual pages of Perl modules now go to the man3/ directory instead of a separate man3perl/ directory.
This commit is contained in:
parent
3edf06337c
commit
b126cdc98d
|
@ -71,8 +71,11 @@ if (NOT POD2MAN_FOUND)
|
|||
else()
|
||||
|
||||
function(add_pod_manpage SOURCE PAGENAME SECTION)
|
||||
set(OUTPUT_DIRECTORY "${MAN_OUTPUT_DIRECTORY}/man${SECTION}")
|
||||
set(TARGETNAME "${PAGENAME}.${SECTION}")
|
||||
if(${SECTION} STREQUAL "3perl")
|
||||
set(SECTION 3)
|
||||
endif()
|
||||
set(OUTPUT_DIRECTORY "${MAN_OUTPUT_DIRECTORY}/man${SECTION}")
|
||||
set(FINALTARGETFILE "${OUTPUT_DIRECTORY}/${TARGETNAME}")
|
||||
# Change TARGETNAME so that the CMake target don't contain any ':'
|
||||
string(REGEX REPLACE ":" "-" TARGETNAME ${TARGETNAME})
|
||||
|
|
Loading…
Reference in New Issue