mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-19 21:02:41 +00:00
Add EQEMU_MSVC_DEBUG_CRT option to cmake
This commit is contained in:
parent
c181614abf
commit
3b707a7a74
@ -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