From e4788704ccd64ab067dc348cdefea6221bfe9b97 Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Sun, 18 Feb 2024 17:24:45 +0100 Subject: [PATCH] cmake: Make use of CMAKE_INSTALL_MANDIR (#382) Instead of hardcoding man path make use of CMAKE_INSTALL_MANDIR variable --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a17a26162..b73ed7328 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1130,8 +1130,8 @@ FILE(GLOB html ${PROJECT_SOURCE_DIR}/doc/html/*.html) FILE(GLOB man1 ${PROJECT_SOURCE_DIR}/doc/*.1) FILE(GLOB man3 ${PROJECT_SOURCE_DIR}/doc/*.3) -INSTALL(FILES ${man1} DESTINATION man/man1) -INSTALL(FILES ${man3} DESTINATION man/man3) +INSTALL(FILES ${man1} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +INSTALL(FILES ${man3} DESTINATION ${CMAKE_INSTALL_MANDIR}/man3) INSTALL(FILES ${html} DESTINATION share/doc/pcre2/html) IF(MSVC AND INSTALL_MSVC_PDB)