<br><font size=2 face="sans-serif">That did the trick. I've never used
nmake directly before.</font>
<br><font size=2 face="sans-serif">---------------------------------------------------------<br>
Aaron Wright<br>
Software Engineer - DCS Group<br>
Schweitzer Engineering Laboratories, Inc.<br>
Pullman, WA 99163<br>
509-334-8087</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Dixon, Shane&quot;
&lt;Shane.Dixon@atmel.com&gt;</b> </font>
<p><font size=1 face="sans-serif">11/10/2009 02:17 PM</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">&lt;Aaron_Wright@selinc.com&gt;, &quot;CMake&quot;
&lt;cmake@cmake.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<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] How to build INSTALL project
from the command line?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">Aaron,</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">Visual Studios should just be
a driver for &quot;nmake&quot;, so you could use:</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">cmake -G &quot;NMake Makefiles&quot;
..</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">and then use:</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">nmake install</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">The catch is that you have to
run all that from the Visual Studio Command Prompt so it knows where to
find &quot;nmake&quot;, &quot;cl&quot; and &quot;link&quot;.</font>
<br><font size=3>&nbsp;</font>
<br>
<p><font size=2>--<br>
Shane Dixon<br>
Linux Engineer<br>
Atmel Corporation<br>
</font>
<p><font size=3>&nbsp;</font>
<br>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> cmake-bounces@cmake.org [mailto:cmake-bounces@cmake.org]
<b>On Behalf Of </b>Aaron_Wright@selinc.com<b><br>
Sent:</b> Tuesday, November 10, 2009 3:09 PM<b><br>
To:</b> CMake<b><br>
Subject:</b> [CMake] How to build INSTALL project from the command line?</font><font size=3><br>
</font>
<br><font size=2 face="sans-serif"><br>
I've been trying to build the INSTALL project as part of the solution from
the commandline. For example, after running:</font><font size=3> <br>
</font><font size=2 face="Terminal"><br>
cmake -G &quot;Visual Studio 9 2008&quot; ..</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I've tried:</font><font size=3> <br>
</font><font size=2 face="Terminal"><br>
msbuild /t:INSTALL /p:Configuration=Release solution.sln</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
But this builds </font><font size=2 face="Terminal">ALL_BUILD</font><font size=2 face="sans-serif">
and then tells me tells me:</font><font size=3> <br>
</font><font size=2 face="Terminal"><br>
The project &quot;INSTALL&quot; is not selected for building in solution
configuration &quot;Release|Win32&quot;</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Is there a way to make this work from cmake's end? I've tried every commandline
swtich I can think of for </font><font size=2 face="Terminal">msbuild</font><font size=2 face="sans-serif">
but have had no luck. I can build the </font><font size=2 face="Terminal">INSTALL.vcproj
</font><font size=2 face="sans-serif">directly, but this looses the dependencies
between projects, like</font><font size=2 face="Terminal"> INSTALL</font><font size=2 face="sans-serif">'s
dependency on </font><font size=2 face="Terminal">ALL_BUILD</font><font size=2 face="sans-serif">.
I'd like to get this done with one call if possible.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
---------------------------------------------------------<br>
Aaron Wright</font>
<br>