HumbleUI/SkiaBuild

value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug'

Alberl-Lee opened this issue · 2 comments

windows 10 x64,debug model error :
`1>skia_x64_debug.lib(skia.SkColor.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'‘

1>skia_x64_debug.lib(skia.SkColor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug' `

Any idea how to fix?

Search the problem on google,has some solution to change the cmake config:
https://discourse.cmake.org/t/mt-staticrelease-doesnt-match-value-md-dynamicrelease/5428/4

NVIDIAGameWorks/PhysX#179

set_property(TARGET MyVtkAppOrLibName PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$CONFIG:Debug:Debug>")

cmakeSwitch name="NV_USE_DEBUG_WINCRT"
cmakeSwitch name="NV_USE_STATIC_WINCRT"

in Visual Studio,
skia_x64_release.lib match MT_StaticRelease, vs config is /MT
skia_x64_debug.lib match MDd_DynamicDebug, vs config is /MDd