]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
build: fix build with custom openssl
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Tue, 21 Aug 2018 16:15:25 +0000 (19:15 +0300)
committerGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Tue, 21 Aug 2018 17:09:13 +0000 (20:09 +0300)
CMakeLists.txt

index 6748f45fa0eb2f2c2c07225fef82b53698785986..bf4849b4ceb346c83f1e8db997fcaabc6a4cd321 100644 (file)
@@ -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