From 661ef5fc7d0e367d5162c5f3871ae50449a2e63d Mon Sep 17 00:00:00 2001 From: Gleb Fotengauer-Malinovskiy Date: Tue, 21 Aug 2018 19:15:25 +0300 Subject: [PATCH] build: fix build with custom openssl --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5