Bugzilla Automation <bugzi...@freebsd.org> has asked k...@freebsd.org for
maintainer-feedback:
Bug 230070: devel/cmake: check_library_exists fails to find libX11/XOpenIM
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230070



--- Description ---
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/openwi
n/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?

Reply via email to