Fix manpage installation

This commit is contained in:
Přemysl Eric Janouch 2016-03-15 21:53:52 +01:00
parent c5dbe5fa44
commit 38890be47d
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ install (TARGETS ${CMAKE_PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
install (FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
foreach (page ${project_MAN_PAGES_OUTPUT})
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)