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:40:25 +01:00
parent 43211852cc
commit 9baf045b5c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ endforeach ()
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 ()