[cmake-developers] RE: Should CMAKE_LINK_DEPENDS_NO_SHARED be on by default?

dlrdave at aol.com dlrdave at aol.com
Mon Feb 25 15:09:55 EST 2013


> Can you elaborate on some of the theoretical cases where relinking
> will be needed but no header files have changed?  It would be useful
> to have them available for discussion.


I can think of one, but it’s probably not that common:

 

A header file declares a function prototype, but there is no implementation of it.

 

When it’s discovered, when somebody finally tries to add an implementation, you only have the change the C++ file to add it.

 

Of course, for the caller that discovers this, it had never linked successfully in the first place, and would relink after that rebuild anyhow...

 

But for other callers that had never discovered it, though, a relink may be necessary in case the ordinals of some of the *other* functions in the dll changed due to the addition of one in the middle.

 

Uncommon, but possible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130225/56d606a3/attachment.html>


More information about the cmake-developers mailing list