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)