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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 30 05:56:35 BST 2018


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

Tobias C. Berner <tcberner at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|maintainer-feedback?(kde at Fr |maintainer-feedback+
                   |eeBSD.org)                  |
                 CC|                            |tcberner at freebsd.org
             Status|New                         |In Progress

--- Comment #2 from Tobias C. Berner <tcberner at freebsd.org> ---
Hi Yuri

I think this is due to /usr/local/{include,lib} not being in  the default
compiler flags.  

If you tell cmake to keep around the test-compile stuff, you should be able to
debug it more easily.

By setting X11_LIB_SEARCH_PATH and passing it as the LOCATION [1] argument, you
obviously help it look there :)  You can see, that [2] simply passes the
LOCATION argument to try_compile as LINK_DIRECTORIES. Which again uses it as
link_directories(${LINK_DIRECTORIES}) [3]. Which you can find here [4].



mfg Tobias

[1] https://cmake.org/cmake/help/v3.12/module/CheckLibraryExists.html
[2]
https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/CheckLibraryExists.cmake#L63
[3] https://cmake.org/cmake/help/v3.12/command/try_compile.html
[4] https://cmake.org/cmake/help/v3.12/command/link_directories.html

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


More information about the kde-freebsd mailing list