mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Update the global variables `LIBGIT2_OBJECTS` to `LIBGIT2_DEPENDENCY_OBJECTS` for clarity and consistency.
18 lines
660 B
CMake
18 lines
660 B
CMake
if(WIN32 AND WINHTTP)
|
|
set(GIT_WINHTTP 1)
|
|
|
|
# Since MinGW does not come with headers or an import library for winhttp,
|
|
# we have to include a private header and generate our own import library
|
|
if(MINGW)
|
|
add_subdirectory("${libgit2_SOURCE_DIR}/deps/winhttp" "${libgit2_BINARY_DIR}/deps/winhttp")
|
|
list(APPEND LIBGIT2_SYSTEM_LIBS winhttp)
|
|
list(APPEND LIBGIT2_DEPENDENCY_INCLUDES "${libgit2_SOURCE_DIR}/deps/winhttp")
|
|
else()
|
|
list(APPEND LIBGIT2_SYSTEM_LIBS "winhttp")
|
|
list(APPEND LIBGIT2_PC_LIBS "-lwinhttp")
|
|
endif()
|
|
|
|
list(APPEND LIBGIT2_SYSTEM_LIBS "rpcrt4" "crypt32" "ole32")
|
|
list(APPEND LIBGIT2_PC_LIBS "-lrpcrt4" "-lcrypt32" "-lole32")
|
|
endif()
|