From c02c38bf4a14fa0352ea267e3be96b6b7f12eb03 Mon Sep 17 00:00:00 2001 From: Dale Glass Date: Tue, 30 Mar 2021 00:38:23 +0200 Subject: [PATCH] Emit error if memory debugging isn't implemented on the platform --- cmake/macros/MemoryDebugger.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/macros/MemoryDebugger.cmake b/cmake/macros/MemoryDebugger.cmake index df62e40417..522c2b3d0b 100644 --- a/cmake/macros/MemoryDebugger.cmake +++ b/cmake/macros/MemoryDebugger.cmake @@ -30,6 +30,8 @@ if (VIRCADIA_MEMORY_DEBUGGING) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fsanitize=address -fsanitize=leak ") SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fsanitize=address -fsanitize=leak") endif() - endif (UNIX) + else() + message(FATAL_ERROR "Memory debugging is not supported on this platform." ) + endif() endif () endmacro(SETUP_MEMORY_DEBUGGER)