X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=1ae1f807e88e62f02674bf29195d4492c08862e4;hp=5e82badd694652422550fd6d9136cec21484a90d;hb=04b3af3e7bd0ca3fe9c33bae20623c2ef2e41e07;hpb=7e720a8b19785ae30dfc02fdf32f7fc7b0aebc70 diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e82bad..1ae1f80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,8 +55,13 @@ if(WIN32) set(Boost_USE_STATIC_RUNTIME ON) endif() find_package(Boost REQUIRED COMPONENTS atomic chrono filesystem program_options system thread) + set(OPENSSL_USE_STATIC_LIBS ON) +find_package(OpenSSL) +if (NOT OpenSSL_FOUND) +set(OPENSSL_USE_STATIC_LIBS OFF) find_package(OpenSSL REQUIRED) +endif() # Disable compiling qrencode executables option(WITH_TOOLS "Build utility tools" NO)