Fix compilation when using CMake in Windows

Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
Vicent Marti 2011-03-03 22:01:15 +02:00
parent 3c41c635fb
commit c3a41e5f14

View File

@ -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})