mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-21 21:12:24 +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)
|
if(EQEMU_DISABLE_MSVC_WARNINGS)
|
||||||
add_compile_options(/W0 /wd4005 /wd4996 /nologo /Os)
|
add_compile_options(/W0 /wd4005 /wd4996 /nologo /Os)
|
||||||
endif()
|
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()
|
else()
|
||||||
add_compile_definitions(HAS_UNION_SEMUN)
|
add_compile_definitions(HAS_UNION_SEMUN)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user