<br><font size=2 face="sans-serif">I have the windows SDK installed. It
came with Visual Studio. I run everything from perl, so in my script, I
set the environment to:</font>
<br>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;VSINSTALLDIR&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;VCINSTALLDIR&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;FrameworkDir&quot;}
= &quot;C:\\WINDOWS\\Microsoft.NET\\Framework&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;FrameworkVersion&quot;}
= &quot;v2.0.50727&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;Framework35Version&quot;}
= &quot;v3.5&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;DevEnvDir&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE&quot;;</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;PATH&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE;C:\\Program
Files\\Microsoft Visual Studio 9.0\\VC\\BIN;C:\\Program Files\\Microsoft
Visual Studio 9.0\\Common7\\Tools;C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5;C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727;C:\\Program
Files\\Microsoft Visual Studio 9.0\\VC\\VCPackages;<b>C:\\Program Files\\Microsoft
SDKs\\Windows\\v6.0A\\bin</b>;&quot; . $ENV{&quot;PATH&quot;};</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;INCLUDE&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0\VC\\INCLUDE;<b>C:\\Program
Files\\Microsoft SDKs\\Windows\\v6.0A\\Include</b>;&quot; . $ENV{&quot;INCLUDE&quot;};</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;LIB&quot;}
= &quot;C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\LIB;<b>C:\\Program
Files\\Microsoft SDKs\\Windows\\v6.0A\\Lib</b>;&quot; . $ENV{&quot;LIB&quot;};</font>
<br><font size=2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ENV{&quot;LIBPATH&quot;}
= &quot;C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5;C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727;C:\\Program
Files\\Microsoft Visual Studio 9.0\\VC\\LIB;&quot; . $ENV{&quot;LIBPATH&quot;};</font>
<br>
<br><font size=2 face="sans-serif"><b>Note the Windows SDK</b></font>
<br>
<br><font size=2 face="sans-serif">---------------------------------------------------------<br>
Aaron Wright</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Bill Hoffman &lt;bill.hoffman@kitware.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: cmake-bounces@cmake.org</font>
<p><font size=1 face="sans-serif">11/13/2009 08:26 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Aaron_Wright@selinc.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">CMake &lt;cmake@cmake.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [CMake] NMake Generation Error:
machine type 'X86' conflicts with target machine type 'x64'</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Aaron_Wright@selinc.com wrote:<br>
&gt; <br>
&gt; I've tried this on several machines and CMake always seems to think
the <br>
&gt; box is x64 even though it clearly says it's x86. I can fix the problem
<br>
&gt; by deleting CMakeCache.txt and running CMake again, which is weird.
I'm <br>
&gt; trying to automate the whole thing in a night build script so this
<br>
&gt; behavior is not helpful. Ideas?<br>
&gt; ---------------------------------------------------------<br>
&gt; Aaron Wright<br>
<br>
You need to install the windows SDK for CMake to work.<br>
<br>
-Bill<br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the CMake FAQ at: </font></tt><a href=http://www.cmake.org/Wiki/CMake_FAQ><tt><font size=2>http://www.cmake.org/Wiki/CMake_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.cmake.org/mailman/listinfo/cmake><tt><font size=2>http://www.cmake.org/mailman/listinfo/cmake<br>
</font></tt></a></a></a>
<br>