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

            Bug ID: 441604
           Summary: find_dependency(inotify) returns false despite
                    find_package(inotify) returning true
           Product: extra-cmake-modules
           Version: 5.84.0
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ecm-bugs-n...@kde.org
          Reporter: m...@dawidwrobel.com
  Target Milestone: ---

SUMMARY
I was working on a patch for kcoreaddons that would add support for static
builds: 
https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/129#note_294344

For some reason, while find_package(Inotify) returns true, the corresponding
find_dependency(Inotify) returns false. 


STEPS TO REPRODUCE
1. Apply the patch from the PR mentioned above (not that it only applies to
static builds, so feel free to remove the condition)
2. Build under Linux and then try to consume the lib from another project 


OBSERVED RESULT
find_dependency(Inotify) fails, despite find_package(Inotify) having returned
true. Replacing find_dependency() with find_package() in Config.cmake file also
works.

EXPECTED RESULT
find_dependency() should return True.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to