Following the README.md compiling LegacyClonk on latest Visual Studio 2022 fails with:
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1
Error LNK1319 2 mismatches detected C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\clonk.exe 1
Setting the compilation to "Release" in CMakeSettings.json works and creates a release build just fine. That step isn't mentioned in the README file and I couldn't get a Debug build to work yet.
Following the README.md compiling LegacyClonk on latest Visual Studio 2022 fails with:
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cmake_pch.cxx.obj C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\fmt.lib(format.obj) 1
Error LNK1319 2 mismatches detected C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\LegacyClonk C:\Users\amki.AD\LegacyClonk\out\build\x64-Debug\clonk.exe 1
Setting the compilation to "Release" in CMakeSettings.json works and creates a release build just fine. That step isn't mentioned in the README file and I couldn't get a Debug build to work yet.