<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>Aaron,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>Visual Studios should just be a driver for "nmake", so 
you could use:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>cmake -G "NMake Makefiles" ..</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>and then use:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>nmake install</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=499251522-10112009>The catch is that you have to run all that from the 
Visual Studio Command Prompt so it knows where to find "nmake", "cl" and 
"link".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2>--<BR>Shane Dixon<BR>Linux Engineer<BR>Atmel 
Corporation<BR><BR></FONT></P>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> cmake-bounces@cmake.org 
[mailto:cmake-bounces@cmake.org] <B>On Behalf Of 
</B>Aaron_Wright@selinc.com<BR><B>Sent:</B> Tuesday, November 10, 2009 3:09 
PM<BR><B>To:</B> CMake<BR><B>Subject:</B> [CMake] How to build INSTALL project 
from the command line?<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>I've been trying to build the 
INSTALL project as part of the solution from the commandline. For example, after 
running:</FONT> <BR><BR><FONT face=Terminal size=2>cmake -G "Visual Studio 9 
2008" ..</FONT> <BR><BR><FONT face=sans-serif size=2>I've tried:</FONT> 
<BR><BR><FONT face=Terminal size=2>msbuild /t:INSTALL /p:Configuration=Release 
solution.sln</FONT> <BR><BR><FONT face=sans-serif size=2>But this builds 
</FONT><FONT face=Terminal size=2>ALL_BUILD</FONT><FONT face=sans-serif size=2> 
and then tells me tells me:</FONT> <BR><BR><FONT face=Terminal size=2>The 
project "INSTALL" is not selected for building in solution configuration 
"Release|Win32"</FONT> <BR><BR><FONT face=sans-serif size=2>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 face=Terminal size=2>msbuild</FONT><FONT face=sans-serif 
size=2> but have had no luck. I can build the </FONT><FONT face=Terminal 
size=2>INSTALL.vcproj </FONT><FONT face=sans-serif size=2>directly, but this 
looses the dependencies between projects, like</FONT><FONT face=Terminal size=2> 
INSTALL</FONT><FONT face=sans-serif size=2>'s dependency on </FONT><FONT 
face=Terminal size=2>ALL_BUILD</FONT><FONT face=sans-serif size=2>. I'd like to 
get this done with one call if possible.</FONT> <BR><FONT face=sans-serif 
size=2>---------------------------------------------------------<BR>Aaron 
Wright</FONT></BODY></HTML>