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

William A. Hoffman billlist at nycap.rr.com
Thu, 22 Apr 2004 15:05:57 -0400


Feel free to reopen the bug on the bug tracker, but do not create a new bug.

-Bill


At 02:28 PM 4/22/2004, Ian Scott wrote:
>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( 
>> LINK_FLAGS) doesn't
>> work on libraries
>> 
>> 
>> ==============================================================
>> ==============
>> THIS MESSAGE WAS GENERATED BY THE BUGTRACKER SOFTWARE PLEASE 
>> DO NOT REPLY
>> 
>> INSTEAD FOLLOW BUG'S URL BELOW IN ORDER TO DETAIL BUG:
>> ==============================================================
>> ==============
>>          Bug #: 629 
>> (http://public.kitware.com/Bug/bug.php?op=show&bugid=629)
>>    Reported By: ian.m.scott at stud.man.ac.uk
>> --------------------------------------------------------------
>> --------------
>>        Summary: SET_TARGET_PROPERTIES(  LINK_FLAGS) doesn't 
>> work on libraries
>>            URL: 
>> 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:
>> ==============================================================
>> ==============
>>                               COMMENTS
>> 
>> ----- Posted by ian.m.scott at stud.man.ac.uk at 2:23 PM on 
>> 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.
>> 
>> See the mail
>> http://www.cmake.org/pipermail/cmake/2004-February/004802.html
>> for a
>> full demonstration of the bug.
>> 
>> This may be related to bug
>> http://www.cmake.org/Bug/bug.php?op=show&bugid=613
>> 
>> ----- Posted by bill.hoffman at kitware.com at 3:47 PM on 
>> 04-21-2004 -----
>> + This is because for static libraries there is no linker step.
>> 
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake