From f46894c6ffdbf750a30314019e5a6dbb69b0dc7d Mon Sep 17 00:00:00 2001 From: Martin Marmsoler Date: Thu, 17 Nov 2022 11:37:27 +0100 Subject: [PATCH] fix build --- dep/libgit2/CMakeLists.txt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dep/libgit2/CMakeLists.txt b/dep/libgit2/CMakeLists.txt index c8c48896e..1e129d6f1 100644 --- a/dep/libgit2/CMakeLists.txt +++ b/dep/libgit2/CMakeLists.txt @@ -34,10 +34,8 @@ endif() if(NOT USE_SYSTEM_LIBGIT2) add_subdirectory(libgit2) - target_include_directories( - git2 INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libgit2/include) -# otherwise the zlib is not available in the src/git -set(LIBGIT2_DEPENDENCY_OBJECTS ${LIBGIT2_DEPENDENCY_OBJECTS} PARENT_SCOPE) -set(LIBGIT2_SYSTEM_LIBS ${LIBGIT2_SYSTEM_LIBS} PARENT_SCOPE) -set(LIBGIT2_INCLUDES ${LIBGIT2_INCLUDES} PARENT_SCOPE) -endif() \ No newline at end of file + # otherwise the zlib is not available in the src/git + set(LIBGIT2_DEPENDENCY_OBJECTS ${LIBGIT2_DEPENDENCY_OBJECTS} PARENT_SCOPE) + set(LIBGIT2_SYSTEM_LIBS ${LIBGIT2_SYSTEM_LIBS} PARENT_SCOPE) + set(LIBGIT2_INCLUDES ${LIBGIT2_INCLUDES} PARENT_SCOPE) +endif()