Rename variable to VIRCADIA_MEMORY_DEBUGGING

This is to make it consistent with an upcoming addition of VIRCADIA_THREAD_DEBUGGING.

Also, check if the variable contains anything and isn't just defined to avoid hard
to figure out bugs and confusion.
This commit is contained in:
Dale Glass 2021-03-30 00:35:54 +02:00
parent 5ffc05f7a7
commit 65c74986ee

View file

@ -8,11 +8,11 @@
#
macro(SETUP_MEMORY_DEBUGGER)
if (DEFINED ENV{HIFI_MEMORY_DEBUGGING})
SET( HIFI_MEMORY_DEBUGGING true )
if (NOT "$ENV{VIRCADIA_MEMORY_DEBUGGING}" STREQUAL "")
SET( VIRCADIA_MEMORY_DEBUGGING true )
endif ()
if (HIFI_MEMORY_DEBUGGING)
if (VIRCADIA_MEMORY_DEBUGGING)
if (UNIX)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# for clang on Linux