[CMake] Will CMP0003 OLD become deprecated?
Bill Hoffman
bill.hoffman at kitware.com
Mon Jan 26 12:35:12 EST 2009
Adolfo Rodríguez wrote:
> Hi all,
>
> I am currently migrating a project to CMake, and have been linking
> targets to project libraries using full paths (i.e., embracing the NEW
> CMP0003 policy of CMake >= 2.6). However, my co-workers are reluctant to
> embrace this because the old CMP0003 policy has not yet yielded
> incorrect results, and because of the extra hassle of specifying full
> paths or link_directories(...) . So, I wanted to ask this list if in the
> (probably distant) future the old behavior will be deprecated. This
> would serve as an extra leverage to support the adoption of the NEW
> CMP0003 style.
>
CMP0003 does not require that you use full paths. If you set the policy
to NEW, and your stuff works (i.e. it builds and links), you are all
set. You should not get any warnings, and things should be fine. So,
no need to leverage for the NEW style, just use it. There are very rare
cases where the NEW style will break something, and they are very easy
to fix (just add an extra link_directories call).
-Bill
More information about the CMake
mailing list