From 8555cc4402a5df61f69d12688e304a292aa6f741 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 11 May 2026 09:28:11 +0100 Subject: [PATCH] cmake: correct private/public include split PR #7202 (`1ab42f3`) accidentally dropped the `PUBLIC` in the includes; this meant that local build was accidentally looking at the in-build include files instead of the in-source include files, and updates to source include files would not trigger a rebuild. --- src/libgit2/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libgit2/CMakeLists.txt b/src/libgit2/CMakeLists.txt index e3d07a7b5..c9b642ec9 100644 --- a/src/libgit2/CMakeLists.txt +++ b/src/libgit2/CMakeLists.txt @@ -43,8 +43,8 @@ list(APPEND LIBGIT2_INCLUDES ${LIBGIT2_DEPENDENCY_INCLUDES}) target_include_directories(libgit2 PRIVATE ${LIBGIT2_INCLUDES} ${LIBGIT2_DEPENDENCY_INCLUDES} - $ - $) + PUBLIC $ + $) target_include_directories(libgit2 SYSTEM PRIVATE ${LIBGIT2_SYSTEM_INCLUDES})