]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fix MacOS building 137/head
authorDimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Sat, 4 May 2019 17:22:16 +0000 (20:22 +0300)
committerDimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
Fri, 17 May 2019 22:52:01 +0000 (01:52 +0300)
Fixes #122

CMakeLists.txt

index 2ea95746bb4186d3decf2afe296b3a00cc8d60e4..a85c86eeba55e74e3da7449bd71197a90f1c7653 100644 (file)
@@ -44,6 +44,9 @@ endif()
 
 set(BIN_DIRECTORY bin)
 
+# Same soversion as OpenSSL
+set(GOST_SOVERSION "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}")
+
 set(OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${BIN_DIRECTORY})
 
 #set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY})
@@ -209,8 +212,9 @@ set_property(TARGET ${BINARY_TESTS_TARGETS} APPEND PROPERTY COMPILE_DEFINITIONS
 add_library(gost_core STATIC ${GOST_LIB_SOURCE_FILES})
 set_target_properties(gost_core PROPERTIES POSITION_INDEPENDENT_CODE ON)
 
-add_library(gost_engine MODULE ${GOST_ENGINE_SOURCE_FILES})
+add_library(gost_engine SHARED ${GOST_ENGINE_SOURCE_FILES})
 set_target_properties(gost_engine PROPERTIES PREFIX "" OUTPUT_NAME "gost")
+set_target_properties(gost_engine PROPERTIES VERSION ${GOST_SOVERSION} SOVERSION ${GOST_SOVERSION})
 target_link_libraries(gost_engine gost_core ${OPENSSL_CRYPTO_LIBRARY})
 
 set(GOST_SUM_SOURCE_FILES