<div class="gmail_quote">On Sat, Jan 24, 2009 at 11:16 AM, Stefan Buschmann <span dir="ltr">&lt;<a href="mailto:s_buschmann@gmx.de">s_buschmann@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Robert Dailey schrieb:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve specified a very complex CMake script that generates an executable project. When I use this CMake script to generate a Visual Studio 2008 project, the &quot;Import Library&quot; property located in Project Settings &gt;&gt; Linker &gt;&gt; Advanced property page in Visual Studio 2008 has a value, specifically the absolute path to the LIB file that will be generated. I have no idea why this value is being filled in when I specifically called CMake&#39;s add_executable() on this project.<br>

</blockquote></div>
It is possible to create an executable and export symbols from it, which can be convenient e.g. to export an API from an application to a plugin. In this case you have an .EXE and can link to it the same way you would do it with a DLL, using an import library (.LIB). So if you get a .LIB from your executable, I would guess that you are accidentally exporting symbols in you project (especially if it&#39;s a complex project as you said). Do you use any EXPORT macros that evaluate to __declspec(dllexport)? If yes, check that those macros are undefined when you compile your executable, so that no symbols are exported. If no symbols are exported from your project, no .LIB file will be created.<br>

<br>
That said: Is that .LIB-file actually generated during the build? If not (if you are not exporting any symbols), you can safely ignore that setting in the project. I guess that CMake enters this option automatically for every project, because it can not know at generation time if this project will export any symbols or not. But if no symbols are exported, there is also no .LIB file generated.</blockquote>
</div><br>Thanks for clarifying on this issue. I had overlooked the fact that the problem could actually be with the code (Performing exports). I&#39;ll look into this, thank you.<br>