mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-17 19:02:25 +00:00
Add EQEMU_MSVC_DEBUG_CRT option to cmake
This commit is contained in:
parent
2bff404d22
commit
f49c8ae0bd
@ -49,6 +49,11 @@ if(MSVC)
|
||||
if(EQEMU_DISABLE_MSVC_WARNINGS)
|
||||
add_compile_options(/W0 /wd4005 /wd4996 /nologo /Os)
|
||||
endif()
|
||||
|
||||
option(EQEMU_MSVC_DEBUG_CRT "Use the debug CRT on MSVC debug builds" OFF)
|
||||
if(EQEMU_MSVC_DEBUG_CRT)
|
||||
add_compile_definitions(_CRT_DBG_MAP_ALLOC)
|
||||
endif()
|
||||
else()
|
||||
add_compile_definitions(HAS_UNION_SEMUN)
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user