mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-22 22:20:02 +00:00
Fix compilation when using CMake in Windows
Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
parent
3c41c635fb
commit
c3a41e5f14
@ -96,6 +96,7 @@ ELSEIF (SHA1_TYPE STREQUAL "openssl")
|
|||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
# Compile and link libgit2
|
# Compile and link libgit2
|
||||||
|
INCLUDE_DIRECTORIES(src include)
|
||||||
ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1})
|
ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1})
|
||||||
TARGET_LINK_LIBRARIES(git2 ${ZLIB_LIBRARY} ${LIB_SHA1} ${PTHREAD_LIBRARY} ${SQLITE3_LIBRARIES})
|
TARGET_LINK_LIBRARIES(git2 ${ZLIB_LIBRARY} ${LIB_SHA1} ${PTHREAD_LIBRARY} ${SQLITE3_LIBRARIES})
|
||||||
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
|
||||||
|
Loading…
Reference in New Issue
Block a user