From f84ed4b9a825a882a68b4e41a35ebc98fb2cf953 Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Sun, 12 Feb 2017 16:40:37 +0000 Subject: [PATCH] Include OpenSSL in CMake --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b377c22..2e19674 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ if("${MHTD}" STREQUAL "MHTD-NOTFOUND") message(FATAL_ERROR "libmicrohttpd is required") endif() +find_package(OpenSSL REQUIRED) + #set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_CONFIGURATION_TYPES "RELEASE;STATIC") if("${CMAKE_BUILD_TYPE}" STREQUAL "") @@ -30,6 +32,6 @@ set(EXECUTABLE_OUTPUT_PATH "bin") file(GLOB SOURCES "crypto/*.c" "crypto/*.cpp" "*.cpp") add_executable(xmr-stak-cpu ${SOURCES}) -target_link_libraries(xmr-stak-cpu pthread microhttpd) +target_link_libraries(xmr-stak-cpu pthread microhttpd crypto ssl)