1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix error C2338 when building Client on Windows

Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined.
This commit is contained in:
Andrey Filipenkov 2022-08-03 11:49:30 +03:00 committed by Andrii Danylchenko
parent 7150ee565a
commit c0825149cf

View File

@ -175,6 +175,7 @@ if(WIN32)
if(NOT ENABLE_DEBUG_CONSOLE)
target_link_libraries(vcmiclient SDL2::SDL2main)
endif()
target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
endif()
target_link_libraries(vcmiclient PRIVATE