8000 No longer possible to add libgit2 to another cmake project with add_subdirectory · Issue #4381 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

No longer possible to add libgit2 to another cmake project with add_subdirectory #4381

@hackhaslam

Description

@hackhaslam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0