[CMake] Question about CMake and NMake generation

David Cole david.cole at kitware.com
Thu Jun 25 06:52:05 EDT 2009


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/0952e096/attachment.htm>


More information about the CMake mailing list