Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
80efb3a4
Unverified
Commit
80efb3a4
authored
Aug 19, 2023
by
Edward Thomson
Committed by
GitHub
Aug 19, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6626 from lazka/fix-win32-openssl
cmake: fix openssl build on win32
parents
8ffdc5a9
86872834
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
cmake/SelectHTTPSBackend.cmake
+4
-4
src/CMakeLists.txt
+2
-1
No files found.
cmake/SelectHTTPSBackend.cmake
View file @
80efb3a4
...
...
@@ -109,8 +109,8 @@ if(USE_HTTPS)
elseif
(
USE_HTTPS STREQUAL
"Schannel"
)
set
(
GIT_SCHANNEL 1
)
list
(
APPEND LIBGIT2_SYSTEM_LIBS
"rpcrt4"
"crypt32"
"ole32"
"secur32"
)
list
(
APPEND LIBGIT2_PC_LIBS
"-lrpcrt4"
"-lcrypt32"
"-lole32"
"-lsecur32"
)
list
(
APPEND LIBGIT2_SYSTEM_LIBS
"rpcrt4"
"crypt32"
"ole32"
)
list
(
APPEND LIBGIT2_PC_LIBS
"-lrpcrt4"
"-lcrypt32"
"-lole32"
)
elseif
(
USE_HTTPS STREQUAL
"WinHTTP"
)
set
(
GIT_WINHTTP 1
)
...
...
@@ -125,8 +125,8 @@ if(USE_HTTPS)
list
(
APPEND LIBGIT2_PC_LIBS
"-lwinhttp"
)
endif
()
list
(
APPEND LIBGIT2_SYSTEM_LIBS
"rpcrt4"
"crypt32"
"ole32"
"secur32"
)
list
(
APPEND LIBGIT2_PC_LIBS
"-lrpcrt4"
"-lcrypt32"
"-lole32"
"-lsecur32"
)
list
(
APPEND LIBGIT2_SYSTEM_LIBS
"rpcrt4"
"crypt32"
"ole32"
)
list
(
APPEND LIBGIT2_PC_LIBS
"-lrpcrt4"
"-lcrypt32"
"-lole32"
)
elseif
(
USE_HTTPS STREQUAL
"OpenSSL-Dynamic"
)
set
(
GIT_OPENSSL 1
)
set
(
GIT_OPENSSL_DYNAMIC 1
)
...
...
src/CMakeLists.txt
View file @
80efb3a4
...
...
@@ -135,7 +135,8 @@ endif()
# platform libraries
if
(
WIN32
)
list
(
APPEND LIBGIT2_SYSTEM_LIBS ws2_32
)
list
(
APPEND LIBGIT2_SYSTEM_LIBS
"ws2_32"
"secur32"
)
list
(
APPEND LIBGIT2_PC_LIBS
"-lws2_32"
"-lsecur32"
)
endif
()
if
(
CMAKE_SYSTEM_NAME MATCHES
"(Solaris|SunOS)"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment