]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Make it possible to re-define OPENSSL_ENGINES_INSTALL_DIR vt-alt-openssl_1_0_2_alt
authorAndrey Bondrov <andrey.bondrov@rosalab.ru>
Mon, 30 Dec 2019 04:57:46 +0000 (14:57 +1000)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Mon, 30 Dec 2019 18:15:15 +0000 (21:15 +0300)
CMakeLists.txt

index a9375696aae2780107bc46741f64b141616c678e..1caf67db036ac7cfc2eb91d12e3b38dd5c1e5ad9 100644 (file)
@@ -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