From 2f358e6f943a53179fec6fec7782d0cfe470d826 Mon Sep 17 00:00:00 2001 From: Artyom Beilis Date: Wed, 2 Aug 2017 00:28:51 +0300 Subject: [PATCH] Updated winsock search --- CMakeLists.txt | 6 +++--- booster/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1cc5cd..34c8838 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,8 +277,8 @@ endif() if(IS_WINDOWS) - find_library(WS2_32 ws2_32) - find_library(WSOCK32 wsock32) + set(WS2_32 ws2_32) + set(WSOCK32 wsock32) else() check_function_exists(dlopen CPPCMS_HAVE_DLOPEN) if(NOT CPPCMS_HAVE_DLOPEN) @@ -423,7 +423,7 @@ endif() if(NOT DISABLE_OPENSSL) find_path(OPENSSL_INCLUDE_DIR openssl/aes.h) - find_library(LIB_OPENSSL NAMES crypto libeay32) + find_library(LIB_OPENSSL NAMES crypto libcrypto libeay32) endif() if(GCRYPT_INCLUDE_DIR AND LIB_GCRYPT) diff --git a/booster/CMakeLists.txt b/booster/CMakeLists.txt index 3b3d2a6..4f81833 100644 --- a/booster/CMakeLists.txt +++ b/booster/CMakeLists.txt @@ -58,7 +58,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro") else() option(DISABLE_STD_LOCALE "Disable std locale backend" OFF) endif() -option(USE_WINDOWS6_API "Use Windows 6 API (Vista, 7)" OFF) +option(USE_WINDOWS6_API "Use Windows 6 API (Vista, 7)" ON) check_function_exists(newlocale BOOSTER_HAS_XLOCALE) @@ -131,7 +131,7 @@ if(NOT DISABLE_ICU_LOCALE) endif() find_library(ICU_UC icuuc${ICU_SUFFIX}) - find_library(ICU_DATA NAMES icudt icudata) + find_library(ICU_DATA NAMES icudt${ICU_SUFFIX} icudata) find_library(ICU_I18N NAMES icuin${ICU_SUFFIX} icui18n${ICU_SUFFIX}) find_path(ICU_INCLUDE_DIR unicode/unistr.h) @@ -276,7 +276,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") endif() if(IS_WINDOWS) - find_library(WS2_32 ws2_32) + set(WS2_32 ws2_32) else() check_function_exists(socket HAVE_SOCKET) if(NOT HAVE_SOCKET)