From ecefff6b8131d90f122812abf0d01d839cebe653 Mon Sep 17 00:00:00 2001 From: varun-r-mallya Date: Sun, 21 Sep 2025 12:00:57 +0530 Subject: [PATCH] get compiling --- CMakeLists.txt | 8 +++++--- src/main.cpp | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c9747d..37bbf0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,9 +24,11 @@ add_custom_target(libbpf_build ALL DEPENDS ${LIBBPF_A}) add_library(libbpf_static STATIC IMPORTED GLOBAL) set_target_properties( libbpf_static - PROPERTIES IMPORTED_LOCATION ${LIBBPF_A} - INTERFACE_INCLUDE_DIRECTORIES - ${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include) + PROPERTIES + IMPORTED_LOCATION ${LIBBPF_A} + INTERFACE_INCLUDE_DIRECTORIES + "${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include;${CMAKE_CURRENT_SOURCE_DIR}/libbpf/src" +) add_dependencies(libbpf_static libbpf_build) diff --git a/src/main.cpp b/src/main.cpp index 1ced110..98612c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,7 +3,7 @@ #define MACRO_STRINGIFY(x) STRINGIFY(x) extern "C" { -#include "bpf/libbpf.h" +#include "libbpf.h" } int add(int i, int j) {