https://bugs.kde.org/show_bug.cgi?id=478669

            Bug ID: 478669
           Summary: FindLibGit2 checks the wrong pkgconfig library name
    Classification: Frameworks and Libraries
           Product: extra-cmake-modules
           Version: 5.246.0
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ecm-bugs-n...@kde.org
          Reporter: m_loui...@yahoo.com
  Target Milestone: ---

SUMMARY

The FindLibGit2 module queries pkgconfig for the "git2" module. The actual
module is called "libgit2", at least on Kde Neon and Fedora 40. This can be
verified by checking the name of the ".pc" file.

STEPS TO REPRODUCE
1. Use FindLibGit2 with a custom build of libgit2, not in the system library
path
2. Provide the correct path to pkg-config by setting CMAKE_PREFIX_PATH
appropriately
3. find_package(LibGit2) fails to find libgit2
4. Change the module name to "libgit2" in FindLibGit2.cmake
5. find_package(LibGit2) finds libgit2 correctly

OBSERVED RESULT

find_package(LibGit2) cannot find the custom libgit2.

EXPECTED RESULT

find_package(LibGit2) finds the custom libgit2.

SOFTWARE/OS VERSIONS
Linux: Custom environment used by the CMS Experiment at CERN
KDE Frameworks Version: Find module copied from current master

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to