[CMake] Recursively include target include directories only

Dan Liew dan at su-root.co.uk
Thu Jun 18 17:24:52 EDT 2015


Hi,

On 18 June 2015 at 12:16, Robert Dailey <rcdailey.lists at gmail.com> wrote:
> On Thu, Jun 18, 2015 at 12:02 PM, Dan Liew <dan at su-root.co.uk> wrote:
>>> Can you explain what you mean by "strong" and "weak" symbols?
>>
>>
>> Google is your friend
>>
>> https://en.wikipedia.org/wiki/Weak_symbol
>>
>> http://stackoverflow.com/questions/2290587/gcc-style-weak-linking-in-visual-studio
>
> Normally Google is my friend, but today it hates me. Because no such
> feature exists for MSVC that I saw.

The stackoverflow suggests it is possible for MSVC.

Thinking about it some more I think what I'm suggesting is the wrong
approach. If you're writing C++ code you should avoid coupling your
classes to allow dependency injection (i.e. you pick how classes are
coupled at run time not at compile time). If your classes are written
with dependency injection in mind then you don't need the weak symbol
stuff I was talking about.


More information about the CMake mailing list