[CMake] Question about CMake and NMake generation

Robert Dailey rcdailey at gmail.com
Thu Jun 25 11:11:18 EDT 2009


Thanks for this information. Was this documented somewhere publicly?

On Thu, Jun 25, 2009 at 5:52 AM, David Cole <david.cole at kitware.com> wrote:

> When using makefile based CMake generators, set CMAKE_BUILD_TYPE to "Debug"
> or "Release" or "MinSizeRel" or "RelWithDebInfo"...
>
> Add it as a STRING cache entry in the cmake-gui or pass it with -D on the
> cmake command line:
>   cmake -DCMAKE_BUILD_TYPE:STRING=Debug -G "NMake Makefiles" ../source_dir
>   nmake
>
>
> On Wed, Jun 24, 2009 at 8:43 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>
>> When I generate using "NMake Makefiles" generator, I build like this (I
>> run this command from inside the build directory):
>> nmake /f Makefile
>>
>> Everything builds just fine, but is this a debug or release build? When
>> you build with NMake, do you have a choice of which configuration you want
>> to use? I'm using the CMake 2.7 nightly build.
>>
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090625/3fc202d8/attachment.htm>


More information about the CMake mailing list