<div dir="ltr">Thanks Stefan! Removing the space helped.<div><p>I used this command:</p><div> set_target_properties(xipivcoregl PROPERTIES LINK_FLAGS "/DELAYLOAD:xipivcore.dll")</div><div></div></div><div><div><br>
</div><div>And I got this error:</div><div><br></div><div>LINK : fatal error LNK1194: cannot delay-load 'xipivcore.dll'
due to import of data symbol '"__declspec(dllimport) protected: static int
SoXipMultiTextureElement::classStackIndex"
(__imp_?classStackIndex@SoXipMultiTextureElement@@1HA)'; link without
/DELAYLOAD:xipivcore.dll<br></div><div><p>But that's another issue.<br></p><p>Cheers,</p><p>Sylvain</p><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 4:54 PM, Stefan Buschmann <span dir="ltr"><<a href="mailto:s_buschmann@gmx.de">s_buschmann@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<br>
If you get this error message, the /DELAYLOAD-option is obviously passed to the compiler correctly, so it can't be a problem with CMake.<br>
I would think that the space between ":" and "mylib.dll" might be the problem. Have you tried it without a space?<div class="Ih2E3d"><br>
<br>
set_target_properties(mylib PROPERTIES LINK_FLAGS "/DELAYLOAD:mylib.dll")<br>
<br></div>
Bye<br>
<br>
Stefan<br>
<br>
<br>
Sylvain Jaume schrieb:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="Wj3C7c">
Hi,<br>
<br>
I try to set the DELAYLOAD flag for the VS8 linker using:<br>
<br>
set_target_properties(mylib PROPERTIES LINK_FLAGS "/DELAYLOAD: mylib.dll")<br>
<br>
But I get the linker error:<br>
<br>
1>LINK : fatal error LNK1146: no argument specified with option '/DELAYLOAD:'<br>
<br>
I found this thread but it did not solve my issue: <a href="http://www.cmake.org/pipermail/cmake/2007-September/016449.html" target="_blank">http://www.cmake.org/pipermail/cmake/2007-September/016449.html</a><br>
<br>
Does CMake 2.6 has a different command to set the linker flags?<br>
<br>
Thanks!<br>
Sylvain<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div></div>