From: Craig Andrews Date: Tue, 3 Jan 2023 22:42:02 +0000 (-0500) Subject: Correct CMake files installation path X-Git-Tag: v3.0.2~2 X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=openssl-gost%2Fengine.git;a=commitdiff_plain;h=2b22503cf83c56f27719eccce013999203e69db0 Correct CMake files installation path install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) will to a path like this: /usr/GostEngine/share/cmake/GostEngine/GostEngineConfig.cmake which is not standard or expected. These files should be installed to: /usr/share/cmake/GostEngine/GostEngineConfig.cmake which can be done by changing the installation line to: install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5053ae4..cae27c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -449,5 +449,5 @@ if (MSVC) install(FILES $ EXPORT GostProviderConfig DESTINATION ${OPENSSL_MODULES_DIR} OPTIONAL) endif() -install(EXPORT GostEngineConfig DESTINATION GostEngine/share/cmake/GostEngine) -install(EXPORT GostProviderConfig DESTINATION GostEngine/share/cmake/GostProvider) +install(EXPORT GostEngineConfig DESTINATION share/cmake/GostEngine) +install(EXPORT GostProviderConfig DESTINATION share/cmake/GostProvider)