aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2018-08-21 19:15:25 +0300
committerGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2018-08-21 20:09:13 +0300
commit661ef5fc7d0e367d5162c5f3871ae50449a2e63d (patch)
tree41bb538b6db5a8ff3e886a9d6dee661f79419788
parentbd56f129f8c84654a1f9c6273aaf2d204cf22cfb (diff)
downloadgost-engine-661ef5fc7d0e367d5162c5f3871ae50449a2e63d.zip
gost-engine-661ef5fc7d0e367d5162c5f3871ae50449a2e63d.tar.gz
gost-engine-661ef5fc7d0e367d5162c5f3871ae50449a2e63d.tar.bz2
build: fix build with custom openssl
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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