]>
Commit | Line | Data |
---|---|---|
e579e0f7 MB |
1 | if(WIN32 AND USE_WINHTTP) |
2 | set(GIT_WINHTTP 1) | |
3 | ||
4 | # Since MinGW does not come with headers or an import library for winhttp, | |
5 | # we have to include a private header and generate our own import library | |
6 | if(MINGW) | |
7 | add_subdirectory("${PROJECT_SOURCE_DIR}/deps/winhttp" "${PROJECT_BINARY_DIR}/deps/winhttp") | |
8 | list(APPEND LIBGIT2_SYSTEM_LIBS winhttp) | |
9 | list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${PROJECT_SOURCE_DIR}/deps/winhttp") | |
10 | else() | |
11 | list(APPEND LIBGIT2_SYSTEM_LIBS "winhttp") | |
12 | list(APPEND LIBGIT2_PC_LIBS "-lwinhttp") | |
13 | endif() | |
14 | ||
15 | list(APPEND LIBGIT2_SYSTEM_LIBS "rpcrt4" "crypt32" "ole32") | |
16 | list(APPEND LIBGIT2_PC_LIBS "-lrpcrt4" "-lcrypt32" "-lole32") | |
17 | endif() |