Skip to content

Commit ecefff6

Browse files
get compiling
1 parent a1c7f26 commit ecefff6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ add_custom_target(libbpf_build ALL DEPENDS ${LIBBPF_A})
2424
add_library(libbpf_static STATIC IMPORTED GLOBAL)
2525
set_target_properties(
2626
libbpf_static
27-
PROPERTIES IMPORTED_LOCATION ${LIBBPF_A}
28-
INTERFACE_INCLUDE_DIRECTORIES
29-
${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include)
27+
PROPERTIES
28+
IMPORTED_LOCATION ${LIBBPF_A}
29+
INTERFACE_INCLUDE_DIRECTORIES
30+
"${CMAKE_CURRENT_SOURCE_DIR}/libbpf/include;${CMAKE_CURRENT_SOURCE_DIR}/libbpf/src"
31+
)
3032

3133
add_dependencies(libbpf_static libbpf_build)
3234

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define MACRO_STRINGIFY(x) STRINGIFY(x)
44

55
extern "C" {
6-
#include "bpf/libbpf.h"
6+
#include "libbpf.h"
77
}
88

99
int add(int i, int j) {

0 commit comments

Comments
 (0)