How to set the Runtime Library to /MT on Command line with msbuild

  • Thread starter Thread starter Shadow5400
  • Start date Start date
S

Shadow5400

Guest
Hi,

I met a problem, could you help me?

I want to change the /MDd to /MT on command line with msbuild, what I did was this:

msbuild MyProj.vcxproj /property:RuntimeLibrary=MT

But it didn't work, what I saw it still showed /MDd under the CLCompile

ClCompile:
C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /ZI /nologo /W
3 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm /EH
sc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Yc"stdafx.h"

Is there other way to change the Runtime Library value on command line with msbuild?

Continue reading...
 
Back
Top