[CMake] question about SHARED and MODULE

Marcin Gil marcin.gil at gmail.com
Wed Jan 24 14:32:39 EST 2007


Dnia środa, 24 stycznia 2007 20:18, Philip Lowman napisał:
> I was wondering if it is possible to build a library in such a way that
> it is both SHARED and MODULE based (with the same identifying name)?  In
> other words have CMake generate both libraries and then throw an error
> if I try to link an executable against a library that is only built with
> MODULE but not both.

But, depending on plaftorm, SHARED and MODULE might be exactly the same.
For Windows they both go for dll.

If your platform support SHARED and MODULE as different did you try to add 
two targets with different linking model?

Kind regards,
-Marcin Gil


More information about the CMake mailing list