You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #4282 (72f27cb in particular) it's no longer possible to add libgit2 to another cmake project with add_subdirectory. The uses of CMAKE_CURRENT_SOURCE_DIR changed to CMAKE_SOURCE_DIR which only works if libgit2 is the root project. I'd suggest that cmake list files in subdirectories that need to refer to the root of the libgit2 source tree should use libgit2_SOURCE_DIR instead.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! I've simply assumed that CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR would be project-relative, but I should've checked that assumption. I've created #4382 to fix that issue.
Since #4282 (72f27cb in particular) it's no longer possible to add libgit2 to another cmake project with add_subdirectory. The uses of
CMAKE_CURRENT_SOURCE_DIR
changed toCMAKE_SOURCE_DIR
which only works if libgit2 is the root project. I'd suggest that cmake list files in subdirectories that need to refer to the root of the libgit2 source tree should use libgit2_SOURCE_DIR instead.The text was updated successfully, but these errors were encountered: