From 9baf045b5c2b751acbd60ee136bf641bd5c81c31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 10 Mar 2016 20:40:25 +0100 Subject: [PATCH] Fix manpage generation The manpages could end up in a wrong directory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 261f4e1..2dad451 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()