From d50340e62f1ba571be7daee6dd62a960f6e60507 Mon Sep 17 00:00:00 2001 From: Robert Priest Date: Tue, 28 May 2019 15:14:15 -0400 Subject: [PATCH] The CmakeLists.txt file in the cpp-netlib repository incorrectly sets the lib suffixes when building with CPP-NETLIB_STATIC_OPENSSL on a Windows Machine. Adding an 'If (WIN32)' condition to properly set CMAKE_FIND_LIBRARY_SUFFIXES to '.lib' on a windows machine. --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56534f32f..5946295ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,11 @@ if (CPP-NETLIB_ENABLE_HTTPS) endif() endif() if (CPP-NETLIB_STATIC_OPENSSL) - set(CMAKE_FIND_LIBRARY_SUFFIXES .a) + if (WIN32) + set(CMAKE_FIND_LIBRARY_SUFFIXES .lib) + else() + set(CMAKE_FIND_LIBRARY_SUFFIXES .a) + endif() endif() find_package(OpenSSL) endif()