Emit error if memory debugging isn't implemented on the platform

This commit is contained in:
Dale Glass 2021-03-30 00:38:23 +02:00
parent 029e602075
commit c02c38bf4a

View file

@ -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)