Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/libgit2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ install(TARGETS libgit2package
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/git2/
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${LIBGIT2_FILENAME}")
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${LIBGIT2_FILENAME}"
PATTERN "experimental.h" EXCLUDE)
Copy link
Preview

Copilot AI Jul 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The closing parenthesis for the install(DIRECTORY ...) command has moved to the PATTERN line, making the DESTINATION line look unbalanced. Consider placing the closing parenthesis on its own line or aligning it consistently for readability.

Suggested change
PATTERN "experimental.h" EXCLUDE)
PATTERN "experimental.h" EXCLUDE
)

Copilot uses AI. Check for mistakes.

install(FILES ${PROJECT_BINARY_DIR}/include/git2/experimental.h
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${LIBGIT2_FILENAME}")
install(FILES "${PROJECT_BINARY_DIR}/include/${LIBGIT2_FILENAME}.h"
Expand Down
Loading