[CMake] how do I test if a library target is static or shared?

Alexander Neundorf a.neundorf-work at gmx.net
Wed Oct 1 19:26:21 EDT 2008


On Monday 22 September 2008, Aleksander Demko wrote:
> How do I test if a library target is static or shared? I've checked
> the target properties and commands and nothing sticks out.

Try get_target_property(targetType myTarget TYPE)

Ooops, seems this is undocumented...
Will fix that.

Alex


More information about the CMake mailing list