diff --git a/cmake/FindASan.cmake b/cmake/FindASan.cmake index fcebb43..98ea7cb 100644 --- a/cmake/FindASan.cmake +++ b/cmake/FindASan.cmake @@ -55,5 +55,5 @@ function (add_sanitize_address TARGET) return() endif () - saitizer_add_flags(${TARGET} "AddressSanitizer" "ASan") + sanitizer_add_flags(${TARGET} "AddressSanitizer" "ASan") endfunction () diff --git a/cmake/FindMSan.cmake b/cmake/FindMSan.cmake index 3b0a4ad..22d0050 100644 --- a/cmake/FindMSan.cmake +++ b/cmake/FindMSan.cmake @@ -53,5 +53,5 @@ function (add_sanitize_memory TARGET) return() endif () - saitizer_add_flags(${TARGET} "MemorySanitizer" "MSan") + sanitizer_add_flags(${TARGET} "MemorySanitizer" "MSan") endfunction () diff --git a/cmake/FindSanitizers.cmake b/cmake/FindSanitizers.cmake index 1c4622f..4f586a3 100644 --- a/cmake/FindSanitizers.cmake +++ b/cmake/FindSanitizers.cmake @@ -67,14 +67,14 @@ function(add_sanitizers ...) if (NUM_COMPILERS GREATER 1) message(WARNING "Can't use any sanitizers for target ${TARGET}, " "because it will be compiled by incompatible compilers. " - "Target will be compiled without sanitzers.") + "Target will be compiled without sanitizers.") return() # If the target is compiled by no known compiler, ignore it. elseif (NUM_COMPILERS EQUAL 0) message(WARNING "Can't use any sanitizers for target ${TARGET}, " "because it uses an unknown compiler. Target will be " - "compiled without sanitzers.") + "compiled without sanitizers.") return() endif () diff --git a/cmake/FindTSan.cmake b/cmake/FindTSan.cmake index 0e80f29..2124e31 100644 --- a/cmake/FindTSan.cmake +++ b/cmake/FindTSan.cmake @@ -60,5 +60,5 @@ function (add_sanitize_thread TARGET) return() endif () - saitizer_add_flags(${TARGET} "ThreadSanitizer" "TSan") + sanitizer_add_flags(${TARGET} "ThreadSanitizer" "TSan") endfunction () diff --git a/cmake/FindUBSan.cmake b/cmake/FindUBSan.cmake index 6948674..ae103f7 100644 --- a/cmake/FindUBSan.cmake +++ b/cmake/FindUBSan.cmake @@ -42,5 +42,5 @@ function (add_sanitize_undefined TARGET) return() endif () - saitizer_add_flags(${TARGET} "UndefinedBehaviorSanitizer" "UBSan") + sanitizer_add_flags(${TARGET} "UndefinedBehaviorSanitizer" "UBSan") endfunction () diff --git a/cmake/sanitize-helpers.cmake b/cmake/sanitize-helpers.cmake index 6f3decd..c51ee6a 100644 --- a/cmake/sanitize-helpers.cmake +++ b/cmake/sanitize-helpers.cmake @@ -150,7 +150,7 @@ endfunction () # Helper to assign sanitizer flags for TARGET. -function (saitizer_add_flags TARGET NAME PREFIX) +function (sanitizer_add_flags TARGET NAME PREFIX) # Get list of compilers used by target and check, if sanitizer is available # for this target. Other compiler checks like check for conflicting # compilers will be done in add_sanitizers function.