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

            Bug ID: 442555
           Summary: FindCanberra ignores any extra libs if provided by the
                    libcanberra.pc
           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

Consider following pkgconfig for libcanberra compiled statically:

prefix=${pcfiledir}/../..

exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libcanberra
Description: Event Sound API
Version: 0.30
Libs: -L"${libdir}" -lcanberra  -L/opt/homebrew/opt/libtool/lib -lltdl
Cflags: -D_REENTRANT -I"${includedir}" -I/opt/homebrew/opt/libtool/include
Requires:


The pkg_check_modules(PC_Canberra libcanberra QUIET) in FindCanberra.cmake sets
up all the extra information in following variables:

PC_Canberra_LDFLAGS:
-L/Users/cromo/Documents/Sourcecode/vcpkg/installed/arm64-osx/debug/lib/pkgconfig/../../lib;-L/opt/homebrew/opt/libtool/lib;-lcanberra;-lltdl
PC_Canberra_LIBRARIES: canberra;ltdl
PC_Canberra_CFLAGS:
-D_REENTRANT;-I/Users/cromo/Documents/Sourcecode/vcpkg/installed/arm64-osx/debug/lib/pkgconfig/../../../include;-I/opt/homebrew/opt/libtool/include

However, only the PC_Canberra_CFLAGS is passed down as
INTERFACE_COMPILE_OPTIONS, effectively ignoring the information about the
additional libraries that need to be linked against.

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

Reply via email to