View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006629CMakeCMakepublic2008-03-19 12:302011-07-29 14:28
ReporterMike Talbot 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake-2-6 
Summary0006629: /DELAYLOAD additional linker option not supported
DescriptionI am using this command in my CMakeLists.txt file to add the /DELAYLOAD linker option:

SET_TARGET_PROPERTIES(target PROPERTIES LINK_FLAGS "/DELAYLOAD:some.dll")

However since upgrading to cmake-2.4 this additional option no longer appears in the VS project file.

From debugging cmake, it appears the problem is in cmLocalVisualStudio7GeneratorOptions::HandleFlag. This assumes that any option starting with /D is a preprocessor definition, which of course is not applicable to the linker. The /DELAYLOAD:some.dll option is then removed and does not get added to the generated project file.
TagsNo tags attached.
Attached Files

 Relationships
related to 0012372closedKitware Robot /DELAYLOAD additional linker option not supported (again) 

  Notes
(0010899)
Philip Lowman (developer)
2008-03-24 22:42

I can confirm this issue. I went to use this flag a month ago on a new project that needed the flag and noticed the problem.

The bug doesn't exist in CMake CVS so you could try building with that. There are nightly win32 builds available here:

http://www.cmake.org/files/vCVS/ [^]
(0010900)
Philip Lowman (developer)
2008-03-24 22:43

Also, I believe CMake 2.4.6 may be unaffected by this.
(0010933)
Bill Hoffman (manager)
2008-03-27 14:54

OK, 2.6.0 does not have this problem. I recommend moving to 2.6.0 (currently in beta.)
(0010939)
Bill Hoffman (manager)
2008-03-27 21:45

2.4.8 is the end of the 2.4.X line, this is fixed in 2.6

 Issue History
Date Modified Username Field Change
2008-03-19 12:30 Mike Talbot New Issue
2008-03-24 22:42 Philip Lowman Note Added: 0010899
2008-03-24 22:43 Philip Lowman Note Added: 0010900
2008-03-27 14:54 Bill Hoffman Note Added: 0010933
2008-03-27 21:45 Bill Hoffman Status new => closed
2008-03-27 21:45 Bill Hoffman Note Added: 0010939
2008-03-27 21:45 Bill Hoffman Resolution open => won't fix
2008-03-27 21:45 Bill Hoffman Fixed in Version => CMake-2-6
2011-08-03 14:44 Brad King Relationship added related to 0012372


Copyright © 2000 - 2018 MantisBT Team