File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,11 @@ add_custom_target(libbpf_build ALL DEPENDS ${LIBBPF_A})
2424add_library (libbpf_static STATIC IMPORTED GLOBAL )
2525set_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
3133add_dependencies (libbpf_static libbpf_build)
3234
Original file line number Diff line number Diff line change 33#define MACRO_STRINGIFY (x ) STRINGIFY(x)
44
55extern " C" {
6- #include " bpf/ libbpf.h"
6+ #include " libbpf.h"
77}
88
99int add (int i, int j) {
You can’t perform that action at this time.
0 commit comments