[Bug 230070] devel/cmake: check_library_exists fails to find libX11/XOpenIM

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 26 22:09:41 BST 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230070

            Bug ID: 230070
           Summary: devel/cmake: check_library_exists fails to find
                    libX11/XOpenIM
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde at FreeBSD.org
          Reporter: yuri at freebsd.org
          Assignee: kde at FreeBSD.org
             Flags: maintainer-feedback?(kde at FreeBSD.org)

The attached CMakeLists.txt fails to find libX11.

'find_package(X11 REQUIRED)' sets
X11_LIB_SEARCH_PATH=/usr/pkg/xorg/lib;/usr/local/lib;/usr/X11R7/lib;/usr/openwin/lib;/opt/X11/lib

Despite the correct path /usr/local/lib being in X11_LIB_SEARCH_PATH
check_library_exists still fails to find X11 and XOpenIM in it.

Uncommenting the SET statement allows check_library_exists to find it. This is
weird: shouldn't it have looked in each directory?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list