Fixed openssl detection on windows.

This commit is contained in:
Armin Novak 2014-09-26 11:16:04 +02:00
parent ff07469386
commit 43d8f34e81
2 changed files with 6 additions and 0 deletions

View File

@ -250,6 +250,10 @@ if(WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINVER=0x0602 -DWIN32_WINNT=0x0602")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWINVER=0x0602 -DWIN32_WINNT=0x0602")
endif()
if (FREERDP_EXTERNAL_SSL_PATH)
set(OPENSSL_ROOT_DIR ${FREERDP_EXTERNAL_SSL_PATH})
endif()
endif()
if(IOS)

View File

@ -54,6 +54,8 @@ SET(_OPENSSL_ROOT_HINTS_AND_PATHS
FIND_PATH(OPENSSL_INCLUDE_DIR
NAMES
openssl/ssl.h
PATH_SUFFIXES
"include"
HINTS
${_OPENSSL_INCLUDEDIR}
${_OPENSSL_ROOT_HINTS_AND_PATHS}