[Cmake] RE: [Bug 629] Changed - SET_TARGET_PROPERTIES( LINK_FLAGS) doesn't work on libraries

Ian Scott ian.m.scott at stud.man.ac.uk
Thu, 22 Apr 2004 19:28:51 +0100


I want to add an option to the library creation step. On MSVC this is =
the "lib" program.

Is there any existing way of doing this?

If not I suspect that
ADD_LIBRARY( foo ...)
SET_TARGET_PROPERTIES( foo PROPERTIES LINK_FLAGS "wibble")
is a pretty sensible syntax. Although I understand that it isn't =
strictly linking.

Should I re submit this as a feature request?

Ian.


> -----Original Message-----
> From: phpbt at public.kitware.com [mailto:phpbt at public.kitware.com]
> Sent: Wednesday, April 21, 2004 8:48 PM
> To: Ian Scott
> Subject: [Bug 629] Changed - SET_TARGET_PROPERTIES(=20
> LINK_FLAGS) doesn't
> work on libraries
>=20
>=20
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> THIS MESSAGE WAS GENERATED BY THE BUGTRACKER SOFTWARE PLEASE=20
> DO NOT REPLY
>=20
> INSTEAD FOLLOW BUG'S URL BELOW IN ORDER TO DETAIL BUG:
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>          Bug #: 629=20
> (http://public.kitware.com/Bug/bug.php?op=3Dshow&bugid=3D629)
>    Reported By: ian.m.scott at stud.man.ac.uk
> --------------------------------------------------------------
> --------------
>        Summary: SET_TARGET_PROPERTIES(  LINK_FLAGS) doesn't=20
> work on libraries
>            URL:=20
> http://www.cmake.org/pipermail/cmake/2004-February/004802.html
>        Product: CMake
>        Version: 1.8
>   To be Closed in Version: None
>         Closed in Version: None
>      Component: General
>        Site(s): All
> !       Status: Closed
> !   Resolution: Not a bug
>       Severity: Significant
>     OS/Version: All
>       Database: None
>       Priority: 4
>    Assigned To:
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>                               COMMENTS
>=20
> ----- Posted by ian.m.scott at stud.man.ac.uk at 2:23 PM on=20
> 02-25-2004 -----
> trying to set the flags passed to the linker using
> SET_TARGET_PROPERTIES( foo PROPERTIES LINK_FLAGS "wibble")
> doesn't work. Apparently it does work if the target is an executable.
>=20
> See the mail
> http://www.cmake.org/pipermail/cmake/2004-February/004802.html
> for a
> full demonstration of the bug.
>=20
> This may be related to bug
> http://www.cmake.org/Bug/bug.php?op=3Dshow&bugid=3D613
>=20
> ----- Posted by bill.hoffman at kitware.com at 3:47 PM on=20
> 04-21-2004 -----
> + This is because for static libraries there is no linker step.
>=20