Skip to content

Commit 96a5078

Browse files
committed
snooper: fix up CMakeLists.txt to fix CI build
Signed-off-by: Andrii Nakryiko <[email protected]>
1 parent 36456f9 commit 96a5078

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/c/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ find_package(BpfObject REQUIRED)
7777
file(GLOB apps *.bpf.c)
7878
if(NOT CARGO_EXISTS)
7979
list(REMOVE_ITEM apps ${CMAKE_CURRENT_SOURCE_DIR}/profile.bpf.c)
80+
list(REMOVE_ITEM apps ${CMAKE_CURRENT_SOURCE_DIR}/snooper.bpf.c)
8081
endif()
8182
foreach(app ${apps})
8283
get_filename_component(app_stem ${app} NAME_WE)
@@ -93,4 +94,10 @@ foreach(app ${apps})
9394
target_link_libraries(${app_stem}
9495
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/libblazesym_c.a -lpthread -lrt -ldl)
9596
endif()
97+
if(${app_stem} STREQUAL snooper)
98+
target_include_directories(${app_stem} PRIVATE
99+
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/capi/include)
100+
target_link_libraries(${app_stem}
101+
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/libblazesym_c.a -lpthread -lrt -ldl)
102+
endif()
96103
endforeach()

0 commit comments

Comments
 (0)