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: k...@freebsd.org Reporter: y...@freebsd.org Assignee: k...@freebsd.org Flags: maintainer-feedback?(k...@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.