Fix manpage generation

The manpages could end up in a wrong directory.
This commit is contained in:
Přemysl Eric Janouch 2016-03-10 20:26:35 +01:00
parent d70f156a20
commit 5a197162bf
1 changed files with 1 additions and 1 deletions

View File

@ -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)