From: Gleb Fotengauer-Malinovskiy Date: Tue, 21 Aug 2018 16:15:25 +0000 (+0300) Subject: build: fix build with custom openssl X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=661ef5fc7d0e367d5162c5f3871ae50449a2e63d;p=openssl-gost%2Fengine.git build: fix build with custom openssl --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6748f45..bf4849b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 2.8) project(ccgost C) +find_package(OpenSSL 1.1 REQUIRED) +include_directories(${OPENSSL_INCLUDE_DIR}) + enable_testing() if (CMAKE_C_COMPILER_ID MATCHES "Clang") @@ -105,7 +108,7 @@ set_target_properties(gost PROPERTIES POSITION_INDEPENDENT_CODE ON) add_library(gost_engine MODULE ${GOST_ENGINE_SOURCE_FILES}) set_target_properties(gost_engine PROPERTIES PREFIX "" OUTPUT_NAME "gost") -target_link_libraries(gost_engine crypto gost) +target_link_libraries(gost_engine ${OPENSSL_CRYPTO_LIBRARY} gost) set(GOST_12_SUM_SOURCE_FILES gost12sum.c