From: Richard Levitte Date: Tue, 30 Mar 2021 18:47:16 +0000 (+0200) Subject: Install manuals in the correct location X-Git-Tag: v3.0.0~29 X-Git-Url: https://wagner.pp.ru/gitweb/?a=commitdiff_plain;ds=inline;h=1864d62c629579be1d2a3c167769082785f079aa;p=openssl-gost%2Fengine.git 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. --- 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})