MantisBT - CMake
View Issue Details
0000613CMakepublic2004-02-20 06:222004-04-21 15:46
Ian Scott 
Bill Hoffman 
normalmajoralways
closedno change required 
 
 
0000613: Can't change linker flags on MSVC
Attempting to locally modify the library link options using

 SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} WIBBLE" )
 SET ( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} WIBBLE" )

ADD_LIBRARY(Hello hello.cxx)
 MESSAGE("${CMAKE_MODULE_LINKER_FLAGS}")

Running cmake (1.8.3), the message output confirms that the variable has been set. But checking for any output containing WIBBLE in the binary tree
grep -r WIBBLE *
returns nothing.

I am using a MSVC6.0 target, and have tested this in both the VXL build tree and the Example build tree from the CMake CVS distribution.
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
(0000676)
Ian Scott   
2004-02-20 11:22   
I have evidence from the VXL dashboard that the same problem happens on MSVC.NET. As it happens I am trying to suppress warnings on a MSVC7.0 and 7.1 build, so it is the MSVC.NET target that I am more interested in seeing fixed.

Thanks,
Ian.
(0000705)
Ian Scott   
2004-02-25 14:25   
It might be more appropriate to fix bug 629 first.
http://www.cmake.org/Bug/bug.php?op=show&bugid=629 [^]
(0000927)
Bill Hoffman   
2004-04-21 15:46   
This is because static libraries to not run the linker, so there are no linker flags.