aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSergei Lemeshkin <sergeilem@gmail.com>2021-03-17 15:28:30 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-03-17 14:52:25 +0100
commit9812e2735188c354c8bd405d1bde4225800cef62 (patch)
tree609e24699604d4623b59c05e88ff22e18a130b18 /CMakeLists.txt
parent053ad3a6fab6c943079a7a2a7aedfdce49ab018f (diff)
downloadgost-engine-9812e2735188c354c8bd405d1bde4225800cef62.zip
gost-engine-9812e2735188c354c8bd405d1bde4225800cef62.tar.gz
gost-engine-9812e2735188c354c8bd405d1bde4225800cef62.tar.bz2
Make it compatible with cmake versions lower than 3.14, specify explicitly destination paths
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0fb7b6e..9768cca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -319,11 +319,11 @@ add_executable(test_tlstree test_tlstree.c)
target_link_libraries(test_tlstree PUBLIC ${OPENSSL_CRYPTO_LIBRARY})
# install programs and manuals
-install(TARGETS gostsum gost12sum)
+install(TARGETS gostsum gost12sum RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES gostsum.1 gost12sum.1 DESTINATION ${CMAKE_INSTALL_DIR}/man1)
# install engine in library and module form
-install(TARGETS lib_gost_engine EXPORT GostEngineConfig)
+install(TARGETS lib_gost_engine EXPORT GostEngineConfig LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(TARGETS gost_engine EXPORT GostEngineConfig
LIBRARY DESTINATION ${OPENSSL_ENGINES_DIR}
RUNTIME DESTINATION ${OPENSSL_ENGINES_DIR})