[CMake] How to deal with incompatible changes in interface of target_link_libraries()?

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 20 16:50:52 EDT 2014


On Tuesday, August 12, 2014 09:06:13 Brad King wrote:
...
> FYI, the only intended use case for setting a policy to OLD is to
> quiet warnings in a maintenance branch of an existing release.
> Some day support for OLD behavior of some policies may be dropped,
> so all project development moving forward should set the policy
> to NEW.

Fixing a warning may make the project require the newer cmake version.
E.g. if MyProject requires cmake 2.8.10, and there is a new policy in 3.0.0, 
which generates a warning, a developer using cmake 3.0.0 may see the warning 
and fix it, but by that he may have broken the build for the required 2.8.10 
and actually now 3.0.0 is required.

Alex


More information about the CMake mailing list