From 1864d62c629579be1d2a3c167769082785f079aa Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 30 Mar 2021 20:47:16 +0200 Subject: [PATCH] Install manuals in the correct location Cmake doesn't support the variable CMAKE_INSTALL_DIR. However, with the GNUInstallDirs module, there is the variable CMAKE_INSTALL_MANDIR. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9768cca..c870045 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -320,7 +320,7 @@ target_link_libraries(test_tlstree PUBLIC ${OPENSSL_CRYPTO_LIBRARY}) # install programs and manuals install(TARGETS gostsum gost12sum RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) -install(FILES gostsum.1 gost12sum.1 DESTINATION ${CMAKE_INSTALL_DIR}/man1) +install(FILES gostsum.1 gost12sum.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) # install engine in library and module form install(TARGETS lib_gost_engine EXPORT GostEngineConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) -- 2.39.2