https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230070
Tobias C. Berner <tcber...@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|maintainer-feedback?(kde@Fr |maintainer-feedback+ |eeBSD.org) | CC| |tcber...@freebsd.org Status|New |In Progress --- Comment #2 from Tobias C. Berner <tcber...@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.