Skip to content
Snippets Groups Projects

Use Imported Target for libgit2

Merged Benjamin Morgan requested to merge bmorgan/GitCondDB:pkgconf-imported-targets into master

CMake's pkg-config module does not add -L flags to xxx_LIBRARIES var, and so linking may fail if libgit2 isn't in a path known to the linker.

Use IMPORTED_TARGET argument in pkg_check_modules (available since CMake 3.6) to create a full imported target to libgit2. Update build and config file use to link to imported target.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading