[CMake] find_library with semantics of -Wl,-search_paths_first?

Jed Brown jed at 59A2.org
Thu Nov 3 19:45:37 EDT 2011


The normal library search semantics on OS X are:

Normally, the linker goes through each path in the search paths one at a
time to find a dynamic version of the library. If none is found, it goes
through each of those paths looking for a static version of the same
library.

http://developer.apple.com/library/mac/#qa/qa1393/_index.html

The option -search_paths_first causes the linker to try shared and then
static in each path before trying the next path. Is there a way to make
find_library search with these semantics?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111103/a58da73d/attachment.htm>


More information about the CMake mailing list