CMake always generates MSVC project with the "/Zi" MASM property for Release configuration
There is no way to generate MSVC project with the property "Generate Debug Information" set to "No" for MASM files.
- If "/Zi" flag is not set for Microsoft assembly files, Cmake generates the MSVC project with the default value for the property "Generate Debug Information" for MASM files. The default value is "Yes (/Zi)"
- If "/Zi" flag is set for Microsoft assembly files, Cmake generates the MSVC project with the specified value "Yes (/Zi)" for the property "Generate Debug Information" for MASM files. So we always have the option /Zi for MASM compilation in RELEASE configuration.
I used CMake version "3.10.0-rc3" and MSVC generators "Visual Studio 14 2015" and "Visual Studio 14 2015 Win64".