From: Andrey Bondrov Date: Mon, 30 Dec 2019 04:57:46 +0000 (+1000) Subject: Make it possible to re-define OPENSSL_ENGINES_INSTALL_DIR X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=21c7d90eb3034c1c82167e67d291a46a112a833b;p=openssl-gost%2Fengine.git Make it possible to re-define OPENSSL_ENGINES_INSTALL_DIR --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a937569..1caf67d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,7 +149,9 @@ add_custom_target(tags WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) # install -set(OPENSSL_ENGINES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/engines-${OPENSSL_VERSION_MAJOR}_${OPENSSL_VERSION_MINOR}) +if (NOT OPENSSL_ENGINES_INSTALL_DIR) + set(OPENSSL_ENGINES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/engines-${OPENSSL_VERSION_MAJOR}_${OPENSSL_VERSION_MINOR}) +endif() set(OPENSSL_MAN_INSTALL_DIR ${CMAKE_INSTALL_MANDIR}/man1) install(TARGETS gost_engine gostsum gost12sum EXPORT GostEngineConfig