set cmake MSVC runtime lib type regardless of current config, cmake takes care of that for us

This commit is contained in:
otavepto 2024-05-28 22:18:26 +03:00
parent bd81939cee
commit 426d121506

View File

@ -183,10 +183,8 @@ local cmake_common_defs = {
'CMAKE_BUILD_TYPE=Release',
'CMAKE_POSITION_INDEPENDENT_CODE=True',
'BUILD_SHARED_LIBS=OFF',
'CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded',
}
if os.target() == 'windows' and string.match(_ACTION, 'vs.+') then
table.insert(cmake_common_defs, 'CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded')
end
local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_flags_init)