SET(THRASH_FREED_MEMORY "AUTO" CACHE STRING "Fill freed memory with specific byte pattern. Will result in slower execution. Options are: ON OFF AUTO.")
MARK_AS_ADVANCED(THRASH_FREED_MEMORY)
IF(THRASH_FREED_MEMORY MATCHES "ON")
ADD_DEFINITIONS( -DTHRASH_FREED_MEMORY)
ELSEIF(THRASH_FREED_MEMORY MATCHES "AUTO" AND NOT WIN32 AND NOT WITH_VALGRIND AND NOT WITH_ASAN)