diff --git a/userspace/libpman/CMakeLists.txt b/userspace/libpman/CMakeLists.txt index d770c5bd2a2..9c7f6d7128a 100644 --- a/userspace/libpman/CMakeLists.txt +++ b/userspace/libpman/CMakeLists.txt @@ -49,7 +49,9 @@ PUBLIC ${ZLIB_LIB} ) -add_dependencies(pman ProbeSkeleton) +if (TARGET ProbeSkeleton) + add_dependencies(pman ProbeSkeleton) +endif() if(USE_BUNDLED_LIBBPF) add_dependencies(pman libbpf)