From d28496ae196434d78dccde2a61585f9de0e42453 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周日, 01 12月 2019 20:24:04 +0800
Subject: [PATCH] mingw cross compile add openssl

---
 CMakeLists.txt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index acd00fb..70fb867 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,12 +62,14 @@
 IF(OPENSSL_FOUND)
 	add_definitions(-DHAS_OPENSSL)
 	include_directories(${OPENSSL_INCLUDE_DIR})
-	MESSAGE(STATUS "Found openssl version ${OPENSSL_VERSION} ")
+	MESSAGE(STATUS "Found openssl version ${OPENSSL_VERSION}")
+ELSE(OPENSSL_FOUND)
+	MESSAGE(STATUS "OpenSSL not found")
 ENDIF(OPENSSL_FOUND)
 
 if(UNIX) #this is true for all the linux systems but not for cross compiling "linux->windows"
 	IF(NOT OPENSSL_FOUND)
-		MESSAGE(SEND_ERROR "Openssl not found - required in Linux")
+		MESSAGE(SEND_ERROR "Openssl required in Linux, please install it or specify -DOPENSSL_ROOT")
 	ENDIF(NOT OPENSSL_FOUND)
 	
     find_package(Threads)

--
Gitblit v1.9.1