<br><font size=2 face="sans-serif">I'm not moving CMakeCache.txt around.
I start with a completely new and empty folder each time. I run CMake and
it thinks that the target machine is x64. I don't specify any funny business
with cross-compiling to a different target machine or anything.</font>
<br>
<br><font size=2 face="sans-serif">I understand the "ctest -S"
for night builds and dashboards and whatnot, but the company already has
their own night build system and dashboard and I have to fit their model,
which is not that hard, I just to automate this build. NMake seemed to
be a good idea, but CMake seems unable to configure for it in one pass.</font>
<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>Richard Wackerbarth <rkw@dataplex.net></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:46 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Richard Wackerbarth <richard@nfsnet.org></font></div></table>
<br>
<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 <cmake@cmake.org></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,<br>
<br>
Perhaps I have it wrong, but I think that the problem is that you are using
CMakeCache.txt that was created on a different machine.<br>
<br>
CMakeCache.txt acts as a "configuration file" that overrides
the registry, environmental variables, and everything else that has a default
value.<br>
This allows the user to define the values that he wishes to have used.<br>
<br>
As for automated nightly builds, the standard technique is to use "ctest
-S" to set up and run the dashboard. In that case, you usually have
it delete the previous build directory and you populate the initial cache
with only those values that you wish to "force" (for example,
you might select a particular compiler for one run and another for a different
run). Variables that you want to have their default value are simply omitted
from the initial cache. See the notes files on almost any of the
nightly submissions to the CMake dashboard for examples.<br>
<br>
Richard<br>
<br>
On Nov 13, 2009, at 10:25 AM, Bill Hoffman wrote:<br>
<br>
> Aaron_Wright@selinc.com wrote:<br>
>> I've tried this on several machines and CMake always seems to
think the box is x64 even though it clearly says it's x86. I can fix the
problem by deleting CMakeCache.txt and running CMake again, which is weird.
I'm trying to automate the whole thing in a night build script so this
behavior is not helpful. Ideas?<br>
>> ---------------------------------------------------------<br>
>> Aaron Wright<br>
> <br>
> You need to install the windows SDK for CMake to work.<br>
> <br>
> -Bill<br>
<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>