Hi Alexander,<br><br>Thanks for your quick response!<br><br><div class="gmail_quote">2008/10/24 Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Friday 24 October 2008, Alexander Neundorf wrote:<br>
&gt;<br>
&gt; Yes, I think you&#39;re the first one who tries that.<br>
&gt;</div></div></blockquote><div><br>Alright! =)<br>&nbsp;<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c"><br>

&gt; &gt; This is the custom build step I need to perform (copy pasted from a<br>
&gt; &gt; handcrafted solution file):<br>
&gt; &gt;<br>
&gt; &gt; ml64 -c -Zi &quot;-Flfoobar.lst&quot; &quot;-FRfoobar.sbr&quot; &quot;-Fofoobar.obj&quot; &quot;foobar.asm&quot;<br>
&gt;<br>
&gt; Are -Fl and -FR necessary or does it also work without them ?<br>
&gt;</div></div></blockquote><div><br>The foobar.lst one isn&#39;t necessary.&nbsp; The second one only is necessary if browse information is needed.&nbsp; Not sure if that is the case ...<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><br></div></div>Ok, it was a bit faster (waiting for Qt to build...)<br>
<br>
So, please put the three attached files into the cmake Modules/ directory and<br>
use<br>
ENABLE_LANGUAGE(ASM-MASM)<br>
This should find ml64.exe .<br>
If it doesn&#39;t, try hardcoding it for now in<br>
CMakeDetermineASM-MASMCompiler.cmake.<br>
Let me know which problems you hit.<br>
<br>
Alex<br>
</blockquote></div><br>I already tried something similar, though I got stuck halfway.<br>Anyway, I dropped in your files in my source directory, which I&#39;ve added to the module path as follows:<br><br>list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR})<br>
<br>cmake seems to pick them up alright.&nbsp; But the result doesn&#39;t seem to work.<br><br>I&#39;ve tried it in two ways:<br><br>1. Using the Visual Studio 2005 Win64 generator to create solution files<br><br>- Here the minor problem is, as you already predicted, that it doesn&#39;t automatically detect ml64.exe but a manual configuration of the variable does help<br>
- the asm file appears in the project, but there doesn&#39;t seem to be any build rule associated with it.&nbsp; Nor as a custom build step in the properties pages, nor as a CMake rule<br>- as a result, the asm file does not get build, yielding some unresolved symbols at linking time<br>
<br>2. Using nmake from the VS2005 x64 command prompt<br><br>- The first issue is that nmake doesn&#39;t like the dashes in variable/macro names.&nbsp; So I had to replace it by an underscore in the dialect strings:<br><br>SET(ASM_DIALECT &quot;_MASM&quot;)<br>
<br>- Again, no build rule for the asm file gets inserted, resulting again in unresolved symbols.<br>- Then it dawned to me that there were other places to replace -MASM by _MASM: in enable_language, when setting the asm file&#39;s language property, and also in the filenames of the cmake files you gave me.<br>
- Now, build rules are created, but no obj files are being build.&nbsp; I had to move &lt;SOURCE&gt; to the end:<br><br>SET(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT &quot;&lt;CMAKE_ASM${ASM_DIALECT}_COMPILER&gt; &lt;FLAGS&gt; /c /Fo &lt;OBJECT&gt; &lt;SOURCE&gt;&quot;)<br>
<br>- Now, obj file is build, it is enlisted in objects.rsp, but the linker still can&#39;t find its symbols ...<br><br>But at least, we&#39;re one or two steps closer =)<br><br>1. Why doesn&#39;t the asm file get any rules in the solution file?<br>
2. Why are the symbols still unresolved in the nmake situation?<br><br>Cheers,<br>Bram<br><br>-- <br>hi, i&#39;m a signature viruz, plz set me as your signature and help me spread :)<br>