Fix manpage generation
The manpages could end up in a wrong directory.
This commit is contained in:
parent
43211852cc
commit
9baf045b5c
@ -71,7 +71,7 @@ endforeach ()
|
|||||||
add_custom_target (docs ALL DEPENDS ${project_MAN_PAGES})
|
add_custom_target (docs ALL DEPENDS ${project_MAN_PAGES})
|
||||||
|
|
||||||
foreach (page ${project_MAN_PAGES})
|
foreach (page ${project_MAN_PAGES})
|
||||||
string (REGEX MATCH "\\.([0-9])" manpage_suffix "${page}")
|
string (REGEX MATCH "\\.([0-9])$" manpage_suffix "${page}")
|
||||||
install (FILES "${page}"
|
install (FILES "${page}"
|
||||||
DESTINATION "${CMAKE_INSTALL_MANDIR}/man${CMAKE_MATCH_1}")
|
DESTINATION "${CMAKE_INSTALL_MANDIR}/man${CMAKE_MATCH_1}")
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
Loading…
Reference in New Issue
Block a user