Commit c3a41e5f14ddd1d0fe5faf9d457ffea8bff0d366

Vicent Marti 2011-03-03T22:01:15

Fix compilation when using CMake in Windows Signed-off-by: Vicent Marti <tanoku@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed015b6..d96924f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -96,6 +96,7 @@ ELSEIF (SHA1_TYPE STREQUAL "openssl")
 ENDIF ()
 
 # Compile and link libgit2
+INCLUDE_DIRECTORIES(src include)
 ADD_LIBRARY(git2 ${SRC} ${SRC_PLAT} ${SRC_SHA1})
 TARGET_LINK_LIBRARIES(git2 ${ZLIB_LIBRARY} ${LIB_SHA1} ${PTHREAD_LIBRARY} ${SQLITE3_LIBRARIES})
 SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})