Skip to content

Commit 7cbd52c

Browse files
rpriest1260glynos
authored andcommitted
The CmakeLists.txt file in the cpp-netlib repository incorrectly sets (#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy