Fix manpage generation
The manpages could end up in a wrong directory.
This commit is contained in:
parent
d70f156a20
commit
5a197162bf
|
@ -202,7 +202,7 @@ endforeach (page)
|
|||
add_custom_target (docs ALL DEPENDS ${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}"
|
||||
DESTINATION "${CMAKE_INSTALL_MANDIR}/man${CMAKE_MATCH_1}")
|
||||
endforeach (page)
|
||||
|
|
Loading…
Reference in New Issue