[CMake] Newbie question: Static linking

Michael Wild themiwi at gmail.com
Mon May 23 08:38:34 EDT 2011


On 05/23/2011 02:20 PM, Sanatan Rai wrote:
> On 23 May 2011 12:54, Michael Jackson <mike.jackson at bluequartz.net> wrote:
>> You might want to take a look at the Factory design pattern.
>>
> 
> That's exactly what I use...
> 
> --Sanatan

Yes, but you are registering the concrete factories implicitly instead
of explicitly, which is causing you the trouble you experience.

Better have your user provide a function registering his/her classes
explicitly.

Michael


More information about the CMake mailing list