[CMake] How to build INSTALL project from the command line?

Dixon, Shane Shane.Dixon at atmel.com
Tue Nov 10 17:17:32 EST 2009


Aaron,
 
Visual Studios should just be a driver for "nmake", so you could use:
 
cmake -G "NMake Makefiles" ..
 
and then use:
 
nmake install
 
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".
 


--
Shane Dixon
Linux Engineer
Atmel Corporation



 

________________________________

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Aaron_Wright at selinc.com
Sent: Tuesday, November 10, 2009 3:09 PM
To: CMake
Subject: [CMake] How to build INSTALL project from the command line?



I've been trying to build the INSTALL project as part of the solution from the commandline. For example, after running: 

cmake -G "Visual Studio 9 2008" .. 

I've tried: 

msbuild /t:INSTALL /p:Configuration=Release solution.sln 

But this builds ALL_BUILD and then tells me tells me: 

The project "INSTALL" is not selected for building in solution configuration "Release|Win32" 

Is there a way to make this work from cmake's end? I've tried every commandline swtich I can think of for msbuild but have had no luck. I can build the INSTALL.vcproj directly, but this looses the dependencies between projects, like INSTALL's dependency on ALL_BUILD. I'd like to get this done with one call if possible. 
---------------------------------------------------------
Aaron Wright
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091110/baf45ef5/attachment-0001.htm>


More information about the CMake mailing list