]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Use HAVE instead of HAS for variable name for consistency.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 26 Mar 2022 15:47:01 +0000 (08:47 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
cmake/detect-sanitizer.cmake

index 30700082b25dcf06c9c275f41b4c444e8e706c1a..8af1f8e0b17498173035653338148cb93cb89fdb 100644 (file)
@@ -16,12 +16,12 @@ macro(check_sanitizer_support known_checks supported_checks)
 
         set(CMAKE_REQUIRED_FLAGS "-fsanitize=${compile_checks}")
 
-        check_c_source_compiles("int main() { return 0; }" HAS_SANITIZER_${check}
+        check_c_source_compiles("int main() { return 0; }" HAVE_SANITIZER_${check}
             FAIL_REGEX "not supported|unrecognized command|unknown option")
 
         set(CMAKE_REQUIRED_FLAGS)
 
-        if(HAS_SANITIZER_${check})
+        if(HAVE_SANITIZER_${check})
             set(available_checks ${compile_checks})
         endif()
     endforeach()