I've read similar questions on stackoverflow but none of the answers did solve my problem.
I need to compile with /MDd
flag and here is my CMake command: (note the bolded /MDd
flag)
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C:/temp -DCMAKE_C_FLAGS="-Zi -W4 -WX- -Od -Oy- -D_WIN32 -DWIN32=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -D_CRT_SECURE_NO_WARNINGS=1 -D_SCL_SECURE_NO_WARNINGS=1 -D_MBCS -GF- -Gm -EHsc -RTCc -RTC1 -MDd -GS -Gy- -Qpar- -fp:precise -fp:except -Zc:wchar_t -Zc:forScope -GR -Gd -analyze- -errorReport:prompt"
This is the output when executing nmake :
cl : Command line warning D9025 : overriding '/MDd' with '/MTd' cl : Command line warning D9025 : overriding '/W4' with '/W3'
Can somebody enlighten me as to what am I doing wrong here?