Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 7cbd52c

Browse files
rpriest1260glynos
authored andcommitted
The CmakeLists.txt file in the cpp-netlib repository incorrectly sets (cpp-netlib#873)
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.
1 parent dab9f51 commit 7cbd52c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ if (CPP-NETLIB_ENABLE_HTTPS)
6969
endif()
7070
endif()
7171
if (CPP-NETLIB_STATIC_OPENSSL)
72-
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
72+
if (WIN32)
73+
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib)
74+
else()
75+
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
76+
endif()
7377
endif()
7478
find_package(OpenSSL)
7579
endif()

0 commit comments

Comments
 (0)