I will thrown my 2 cents in for this. I also use a Command prompt to run CMake on Windows and I generate Visual Studio projects. If I want to do a build and not edit the code I do the following:
cmake.exe ../ msbuild /p:Configuration=Release MyProject.sln msbuild /p:Configuration=Release PACKAGE.vcproj Maybe not the most elegant solution but does work. I do like the idea of a .user file though. ___________________________________________________________ Mike Jackson Principal Software Engineer BlueQuartz Software Dayton, Ohio [email protected] www.bluequartz.net On Feb 24, 2012, at 1:06 PM, John Drescher wrote: >> The SLN solution contains all possible build-types. The user just have to >> select which one they want (i.e. in Visual Studio, not cmake) >> > > Continuing on this subject. The default configuration in Visual Studio > is Debug so that is why debug is selected. > > There are many ways around this: > > 1. You could reduce the configurations that CMake creates down just to > the one you want. > > 2. Do batch building. I do this option. Look at the cmake --build command > > 3. Use nmake makefiles (I believe) > > 4. Generate a new .user file to specify the default build for your > project in visual studio when you configure the project in cmake. > > ... > > John > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
