Merge branch 'catch' of github.com:m6w6/libmemcached into gh-actions
[awesomized/libmemcached] / CMake / CheckDebug.cmake
index 2c873d86959b4530840b7f27dbe6b2263104e0ff..32fbf26d1ddb1dcd7caf576d4a2fdb13a487e164 100644 (file)
@@ -49,7 +49,7 @@ function(check_debug)
                 if(HAVE_ASAN)
                     add_compile_definitions(HAVE_ASAN)
                     add_compile_options(-fsanitize=address)
-                    link_libraries(asan)
+                    link_libraries(-fsanitize=address)
                     check_flag(-fsanitize-recover=address IGNORE)
                 endif()
             endif()
@@ -62,7 +62,7 @@ function(check_debug)
                 if(HAVE_UBSAN)
                     add_compile_definitions(HAVE_UBSAN)
                     add_compile_options(-fsanitize=undefined)
-                    link_libraries(ubsan)
+                    link_libraries(-fsanitize=undefined)
                     check_flag(-fsanitize-recover=undefined IGNORE)
                 endif()
             endif()