[sldev] Re: CMake 2.4.8 vs 2.6 (Re: Missing cares, apr in Mac build)

Bill Hoffman bill.hoffman at kitware.com
Fri Jul 18 19:20:53 PDT 2008


Aimee Walton wrote:
> 
> On Jul 18, 2008, at 20:21, Bill Hoffman wrote:
> 
>> Aimee Walton wrote:
>>> On Jul 18, 2008, at 18:51, Rob Lanphier wrote:
>>>>
>>>> Does anyone know if there a fundamental incompatibility between 
>>>> CMake 2.4.8 and 2.6, or is CMake 2.6 support something that can be 
>>>> made to work without too much hassle?  This seems like a FAQ in the 
>>>> making.
>>> This is the problem ...
>>> aimee$ ./cmake --help-policy CMP0003
>>> cmake version 2.6-patch 0
>>> ------------------------------------------------------------------------------   
>>> CMP0003
>>>        Libraries linked via full path no longer produce linker search
>>
>>
>> Sure, that is a warning, does the build still work?
> 
> Sorry, not my most useful reply ever, I'll blame lack of sleep.
> 
> We have
>      target_link_libraries(myexe /path/to/foo)
> 
> Which is working on 2.4 as it splits to give -lfoo
> 
> However on 2.6 it breaks the build, as it uses /path/to/foo when it 
> really needs /path/to/libfoo.a
> 

But that would be broken for any makefile build in 2.4.   It would only 
work in Visual Studio IDE projects.  If you build with nmake, or any 
other make it would break in 2.4 as well.   But, you are showing foo.a, 
does that actually work with a makefile in cmake 2.4?

-Bill


More information about the SLDev mailing list