View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000613CMakepublic2004-02-20 06:222004-04-21 15:46
ReporterIan Scott 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000613: Can't change linker flags on MSVC
DescriptionAttempting 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.
TagsNo tags attached.
Attached Files

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

  Notes
(0000676)
Ian Scott (reporter)
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 (reporter)
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 (manager)
2004-04-21 15:46

This is because static libraries to not run the linker, so there are no linker flags.

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


Copyright © 2000 - 2018 MantisBT Team