From 65c74986ee041964e4b85c98956bdff9533af32d Mon Sep 17 00:00:00 2001 From: Dale Glass Date: Tue, 30 Mar 2021 00:35:54 +0200 Subject: [PATCH] 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. --- cmake/macros/MemoryDebugger.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/macros/MemoryDebugger.cmake b/cmake/macros/MemoryDebugger.cmake index ebcd55a7dc..8afaab686e 100644 --- a/cmake/macros/MemoryDebugger.cmake +++ b/cmake/macros/MemoryDebugger.cmake @@ -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