Skip to content

Commit 614350a

Browse files
committed
Find openssl lib files in right directory for MSVC
Some openssl builds put their lib files in a VC subdirectory, others do not. Cater for both cases. Backpatch to all live branches. From an offline discussion with Leonardo Cecchi.
1 parent d466335 commit 614350a

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

src/tools/msvc/Solution.pm

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,10 +523,20 @@ sub AddProject
523523
if ($self->{options}->{openssl})
524524
{
525525
$proj->AddIncludeDir($self->{options}->{openssl} . '\include');
526-
$proj->AddLibrary(
527-
$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1);
528-
$proj->AddLibrary(
529-
$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1);
526+
if (-e "$self->{options}->{openssl}/lib/VC/ssleayMD.lib")
527+
{
528+
$proj->AddLibrary(
529+
$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1);
530+
$proj->AddLibrary(
531+
$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1);
532+
}
533+
else
534+
{
535+
$proj->AddLibrary(
536+
$self->{options}->{openssl} . '\lib\ssleay32.lib', 1);
537+
$proj->AddLibrary(
538+
$self->{options}->{openssl} . '\lib\libeay32.lib', 1);
539+
}
530540
}
531541
if ($self->{options}->{nls})
532542
{

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