build: disable notification async example
Notification async example needs oi_uv bindings.
This binding is not build for ASAN builds.
Until proper handling of dependencies in cmake is implemented
(https://github.com/ElektraInitiative/libelektra/issues/2007)
we manually disable the example for such builds.
@@ -16,10 +16,12 @@ add_dependencies (${EXAMPLE} kdberrors_generated)
target_link_elektra (${EXAMPLE} elektra-kdb elektra-notification)
# The asynchronous example requires io_uv
+# io_uv is disabled for ASAN builds, see
+# https://github.com/ElektraInitiative/libelektra/issues/2007
check_binding_included ("io_uv" IS_INCLUDED SUBDIRECTORY "io/uv" SILENT)
find_package (PkgConfig)
pkg_check_modules (LIBUV QUIET libuv)
-if (IS_INCLUDED AND LIBUV_FOUND)
+if (IS_INCLUDED AND LIBUV_FOUND AND NOT ENABLE_ASAN)
set (EXAMPLE example_notification_async) # Build example_notification_async
