View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000629CMakepublic2004-02-25 14:232004-04-22 16:58
ReporterIan Scott 
Assigned ToBill Hoffman 
PriorityhighSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000629: SET_TARGET_PROPERTIES( LINK_FLAGS) doesn't work on libraries
Descriptiontrying 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 [^]
TagsNo tags attached.
Attached Files

 Relationships
related to 0010554closedKitware Robot CMAKE_MODULE_LINKER_FLAGS_DEBUG has no effect in Visual Studio 2008 generator 

  Notes
(0000928)
Bill Hoffman (manager)
2004-04-21 15:47

This is because for static libraries there is no linker step.
(0000943)
Ian Scott (reporter)
2004-04-22 16:15

Can you add the ability to set flags on the command used to create static libraries (its lib under MSVC)

Thanks.
(0000947)
Bill Hoffman (manager)
2004-04-22 16:58

I added a new property called:
STATIC_LIBRARY_FLAGS

LINK_FLAGS will still be only for things that actually link. That way when you have BUILD_SHARED ON or OFF it won't try and use the wrong flags if it uses a separate property.


 Issue History
Date Modified Username Field Change
2011-01-17 15:34 David Cole Relationship added related to 0010554


Copyright © 2000 - 2018 MantisBT Team