]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Correct CMake files installation path
authorCraig Andrews <candrews@integralblue.com>
Tue, 3 Jan 2023 22:42:02 +0000 (17:42 -0500)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Thu, 5 Jan 2023 20:53:46 +0000 (23:53 +0300)
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)

CMakeLists.txt

index 5053ae4543485302a4f8a55ba662a56e4058f88d..cae27c3b1b8e39a40bbcb454c1d035bd0d34e074 100644 (file)
@@ -449,5 +449,5 @@ if (MSVC)
   install(FILES $<TARGET_PDB_FILE:gost_prov>
     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)