Support multiple targets in add_sanitizers.

This commit is contained in:
Alexander Haase 2016-06-14 01:12:11 +02:00
parent 8fe13da3a5
commit 5bfe8a8e51

View File

@ -52,9 +52,11 @@ function(sanitizer_add_blacklist_file FILE)
"SanitizerBlacklist" "SanBlist")
endfunction()
function(add_sanitizers TARGET)
function(add_sanitizers ...)
foreach (TARGET ${ARGV})
add_sanitize_address(${TARGET})
add_sanitize_thread(${TARGET})
add_sanitize_memory(${TARGET})
add_sanitize_undefined(${TARGET})
endforeach ()
endfunction(add_sanitizers)