diff options
-rw-r--r-- | src/libgit2/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/util/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/util/path.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/libgit2/CMakeLists.txt b/src/libgit2/CMakeLists.txt index 1e39d26e7..8a0084d49 100644 --- a/src/libgit2/CMakeLists.txt +++ b/src/libgit2/CMakeLists.txt @@ -49,6 +49,7 @@ endif() ide_split_sources(libgit2) list(APPEND LIBGIT2_OBJECTS $<TARGET_OBJECTS:libgit2>) +list(APPEND LIBGIT2_OBJECTS $<TARGET_OBJECTS:util>) target_include_directories(libgit2 PRIVATE ${LIBGIT2_INCLUDES} PUBLIC ${libgit2_SOURCE_DIR}/include) target_include_directories(libgit2 SYSTEM PRIVATE ${LIBGIT2_SYSTEM_INCLUDES}) diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index c92224649..fe1aba2de 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -10,8 +10,7 @@ file(GLOB SRC_UTIL_H "${libgit2_SOURCE_DIR}/include/git2/sys/*.h") list(SORT SRC_UTIL_H) -file(GLOB SRC_UTIL alloc.c futils.c hash.c net.c pool.c posix.c runtime.c str.c strmap.c tsort.c util.c varint.c vector.c allocators/*.c allocators/*.h) - +file(GLOB SRC_UTIL alloc.c futils.c hash.c net.c path.c pool.c posix.c regexp.c runtime.c str.c strmap.c tsort.c util.c varint.c vector.c allocators/*.c allocators/*.h) #file(GLOB SRC_UTIL *.c *.h allocators/*.c allocators/*.h) list(SORT SRC_UTIL) diff --git a/src/util/path.c b/src/util/path.c index d8d33a141..01d4d344b 100644 --- a/src/util/path.c +++ b/src/util/path.c @@ -8,7 +8,8 @@ #include "path.h" #include "posix.h" -#include "repository.h" +#include "utf8.h" + #ifdef GIT_WIN32 #include "win32/posix.h" #include "win32/w32_buffer.h" |