[CMake] NMake VC13 Release generates Debug

Lutz Malchus lmalchus at web.de
Thu Apr 30 05:19:01 EDT 2015


Hi CMaker,

when i start

cmake –DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..

in a Visual Studio 13 - x64 Command Line Client (with clear build-dir)

nmake generates an debug-application instead of an release.
Generating NMake-Makefiles with cmake-gui (out of the same Client) works.
Generating NMake-Makefiles on a differnt machine in a Visual Studio 10 -
x64 Command Line Client works.

"
cmake_minimum_required(VERSION 2.8.9)
    project(myapp)
    add_executable(myapp main.cpp)

   set_target_properties(myapp PROPERTIES LINK_FLAGS_RELEASE
"/SUBSYSTEM:CONSOLE")
"

CMake-Version 3.2.2

Is there anything i'm doing wrong?

Lutz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150430/6a09ed4c/attachment.html>


More information about the CMake mailing list