mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 10:42:10 +02:00
Emit error if memory debugging isn't implemented on the platform
This commit is contained in:
parent
029e602075
commit
c02c38bf4a
1 changed files with 3 additions and 1 deletions
|
@ -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_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")
|
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fsanitize=address -fsanitize=leak")
|
||||||
endif()
|
endif()
|
||||||
endif (UNIX)
|
else()
|
||||||
|
message(FATAL_ERROR "Memory debugging is not supported on this platform." )
|
||||||
|
endif()
|
||||||
endif ()
|
endif ()
|
||||||
endmacro(SETUP_MEMORY_DEBUGGER)
|
endmacro(SETUP_MEMORY_DEBUGGER)
|
||||||
|
|
Loading…
Reference in a new issue