MantisBT - CMake
View Issue Details
0000629CMakepublic2004-02-25 14:232004-04-22 16:58
Ian Scott 
Bill Hoffman 
highfeaturealways
closedfixed 
 
 
0000629: SET_TARGET_PROPERTIES( LINK_FLAGS) doesn't work on libraries
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 [^]
No tags attached.
related to 0010554closed Kitware Robot CMAKE_MODULE_LINKER_FLAGS_DEBUG has no effect in Visual Studio 2008 generator 
Issue History
2011-01-17 15:34David ColeRelationship addedrelated to 0010554

Notes
(0000928)
Bill Hoffman   
2004-04-21 15:47   
This is because for static libraries there is no linker step.
(0000943)
Ian Scott   
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   
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.