See the question and my original answer on StackOverflow

Add a specific ClCompile property for the compilation configuration:

<Project DefaultTargets="Build" ToolsVersion="16.0" xmlns="">
    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">

Possible values are here: runtimeLibraryOption Enum (remove the "rt" prefix)

rtMultiThreaded 0 : Multi-threaded (/MT)

rtMultiThreadedDebug 1 : Multi-threaded Debug (/MTd)

rtMultiThreadedDebugDLL 3 : Multi-threaded Debug DLL (/MDd)

rtMultiThreadedDLL 2 : Multi-threaded DLL (/MD)

More info about MT / MD can be found here: /MD, /MT, /LD (Use Run-Time Library)