[CMake] Cmake MacOSX Question

Brad King brad.king at kitware.com
Mon Jun 26 11:00:28 EDT 2006


William A. Hoffman wrote:
> At 11:09 PM 6/24/2006, Hans Johnson wrote:
>> Thanks for all your suggestions. They put me onto the correct path to
>> figuring out what was going on.  Close inspection of the man page for ld on
>> MacOSX indicates why the strange behavior was occuring.
>>
>> -search_paths_first
>>         By  default  when  the  -dynamic  flag is in effect, the -lx and
>>        -weak-lx  options  first  search  for  a  file   of   the   form
>>        `libx.dylib'  in each directory in the library search path, then
>>        a file of the form `libx.a'  is  searched  for  in  the  library
>>        search  paths.   This  option  changes  it  so that in each path
>>        `libx.dylib' is searched for then `libx.a' before the next  path
>>        in the library search path is searched.
 > This sounds very familiar.  I think we figured it out once before, 
and talked
 > about making this flag the default on OSX.  Does that sound like a 
good idea?

It looks good to me.  This will be consistent with what 
cmOrderLinkDirectories computes.

-Brad


More information about the CMake mailing list