Skip to content

Hunter Dependencies with Git Submodule #511

Description

@image357
  • I've read Brief overview section and do understand basic concepts. [Yes]
  • I've read F.A.Q. section and there is no solution to my problem there. [Yes]
  • I've read Code of Conduct, I promise to be polite and will do my best at being constructive. [Yes]
  • I've read Reporting bugs section carefully. [Yes]
  • I've checked that all the hunter_add_package/find_package API used by me in the example is the same as in documentation. [Yes]
  • I'm using latest Hunter URL/SHA1. [Yes]

Hunter currently cannot handle dependencies that need git submodules to build. The problem is that

  1. Ordinary GitHub .tar.gz archives will not contain the submodule contents.
  2. hunter_config(... GIT_SUBMODULE ...) will not package the submodule content and thus compilation will fail (missing files).

Example Repository: https://github.com/image357/cmake_tutorial

If you try to include this repository in any other repository via Hunter, it will fail. The reason is that both submodules (lib/HunterGate and tests/lib/googletest) will not be present at compile time.

This is unfortunate, since a dependency, which itself used hunter_config(... GIT_SUBMODULE ...) will not be compatible with Hunter (i.e. git submodule resursive hunter dependencies are not possible).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions