]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Install manuals in the correct location
authorRichard Levitte <richard@levitte.org>
Tue, 30 Mar 2021 18:47:16 +0000 (20:47 +0200)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Tue, 30 Mar 2021 20:05:13 +0000 (23:05 +0300)
Cmake doesn't support the variable CMAKE_INSTALL_DIR.  However, with
the GNUInstallDirs module, there is the variable CMAKE_INSTALL_MANDIR.

CMakeLists.txt

index 9768cca04e284b8520d322fb69ff953d4f601f9a..c870045a2b64b0f491eb65c2d293958ba8317e23 100644 (file)
@@ -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})