[CMake] addition to GET_TARGET_PROPERTY
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Jun 14 13:23:32 EDT 2005
Hi,
the attached patch adds a read-only property "TYPE" to
GET_TARGET_PROPERTY. It returns one of cmTarget::TargetType.
I'd like to use this for a special macro which replaces
TARGET_LINK_LIBRARIES() and which checks the type of the target and of
each library and adds some special linker flags for STATIC_LIBRARY libs
if the target is a SHARED_LIBRARY (to emulate libtool convenience libs).
This is a very special case but since this is a actually a very general
information can you please apply the patch ?
Bye
Alex
--
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmGetTargetPropertyCommand.cxx.diff
Type: text/x-diff
Size: 1548 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050614/265e2b83/cmGetTargetPropertyCommand.cxx.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmGetTargetPropertyCommand.h.diff
Type: text/x-diff
Size: 1053 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050614/265e2b83/cmGetTargetPropertyCommand.h.bin
More information about the CMake
mailing list