MantisBT - CMake
View Issue Details
0006629CMakeCMakepublic2008-03-19 12:302011-07-29 14:28
Mike Talbot 
 
normalmajoralways
closedwon't fix 
 
CMake-2-6 
0006629: /DELAYLOAD additional linker option not supported
I 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.
No tags attached.
related to 0012372closed Kitware Robot /DELAYLOAD additional linker option not supported (again) 
Issue History
2008-03-19 12:30Mike TalbotNew Issue
2008-03-24 22:42Philip LowmanNote Added: 0010899
2008-03-24 22:43Philip LowmanNote Added: 0010900
2008-03-27 14:54Bill HoffmanNote Added: 0010933
2008-03-27 21:45Bill HoffmanStatusnew => closed
2008-03-27 21:45Bill HoffmanNote Added: 0010939
2008-03-27 21:45Bill HoffmanResolutionopen => won't fix
2008-03-27 21:45Bill HoffmanFixed in Version => CMake-2-6
2011-08-03 14:44Brad KingRelationship addedrelated to 0012372

Notes
(0010899)
Philip Lowman   
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   
2008-03-24 22:43   
Also, I believe CMake 2.4.6 may be unaffected by this.
(0010933)
Bill Hoffman   
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   
2008-03-27 21:45   
2.4.8 is the end of the 2.4.X line, this is fixed in 2.6