Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
rp1260 committed May 28, 2019
commit d50340e62f1ba571be7daee6dd62a960f6e60507
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down