[cmake-developers] Setting includes, defines and other usage requirements with one command

Brad King brad.king at kitware.com
Tue Jan 29 16:02:57 EST 2013


On 01/29/2013 03:33 PM, Alexander Neundorf wrote:
>> In the worst case, the needed compile definitions will be duplicated by an
>> existing call to add_definitions(), and in the best case the needed
>> defintions will be added where they were absent before.
> 
> No, adding definitions which where not there before (but the project was 
> building and working nevertheless) can potentially break builds.
> Not likely, but possible.

We've decided elsewhere in this discussion that the new interfaces will
not be populated for downstreams at all unless they request it either
with an explicit variable or by requesting a sufficiently new version
of the upstream.  That avoids any compatibility breakage for existing
downstreams.

-Brad



More information about the cmake-developers mailing list