From 09590953d05672f62a1f95913e6149f490dced80 Mon Sep 17 00:00:00 2001 From: Don Date: Fri, 16 Mar 2018 14:59:53 -0700 Subject: Remove CMAKE_HOST_ references CMAKE_HOST_ describes the host system not the target. For cross compilation to work the actual target system should be used for making decisions in CMake. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index df92e6a..df20441 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -279,7 +279,7 @@ else() set(OPENSSL_LIBS tls ssl crypto) endif() -if(CMAKE_HOST_WIN32) +if(WIN32) set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) endif() if(CMAKE_SYSTEM_NAME MATCHES "Linux") -- cgit v1.2.3-55-g6feb