Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe39a08

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

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
@@ -503,10 +503,20 @@ sub AddProject
503503
if ($self->{options}->{openssl})
504504
{
505505
$proj->AddIncludeDir($self->{options}->{openssl} .'\include');
506-
$proj->AddLibrary(
507-
$self->{options}->{openssl} .'\lib\VC\ssleay32.lib', 1);
508-
$proj->AddLibrary(
509-
$self->{options}->{openssl} .'\lib\VC\libeay32.lib', 1);
506+
if (-e"$self->{options}->{openssl}/lib/VC/ssleayMD.lib")
507+
{
508+
$proj->AddLibrary(
509+
$self->{options}->{openssl} .'\lib\VC\ssleay32.lib', 1);
510+
$proj->AddLibrary(
511+
$self->{options}->{openssl} .'\lib\VC\libeay32.lib', 1);
512+
}
513+
else
514+
{
515+
$proj->AddLibrary(
516+
$self->{options}->{openssl} .'\lib\ssleay32.lib', 1);
517+
$proj->AddLibrary(
518+
$self->{options}->{openssl} .'\lib\libeay32.lib', 1);
519+
}
510520
}
511521
if ($self->{options}->{nls})
512522
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp