[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 12:21:57 PDT 2008
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?
If so, you can do run cmake like this:
./cmake -Wno-dev
In the long run, this should be fixed in the SL CMake files.
Just add these statements at the top of the CMakeLists.txt for SL, and
it should fix the problem for the whole project.
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
The only case that is not true is when there are more than one instance
of cmake_minimum_required(VERSION 2.4) in the project. If so, you
would need the above three lines after each cmake_minimum_required call.
-Bill
More information about the SLDev
mailing list