From 2e1d5687f9503bd956ef9a847bd56dfabdb97155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 6 Oct 2023 08:07:17 +0200 Subject: [PATCH] fix events: use px4_add_library instead of add_library Fixes `make uorb_graphs` --- src/lib/events/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/events/CMakeLists.txt b/src/lib/events/CMakeLists.txt index eea3e9b2ec..e153e3245f 100644 --- a/src/lib/events/CMakeLists.txt +++ b/src/lib/events/CMakeLists.txt @@ -118,5 +118,4 @@ if (${PX4_PLATFORM} STREQUAL "nuttx" AND NOT CONFIG_BUILD_FLAT) add_dependencies(usr_events prebuild_targets) endif() -add_library(events events.cpp ${EXTRA_SRCS}) -add_dependencies(events prebuild_targets) +px4_add_library(events events.cpp ${EXTRA_SRCS})