Skip to content

Commit

Permalink
fix(build): add includes to gvisor shared lib build
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Guerra <luca@guerra.sh>
  • Loading branch information
LucaGuerra committed Sep 20, 2024
1 parent b8c2d0d commit e13bf85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions userspace/libscap/engine/gvisor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ if(BUILD_SHARED_LIBS)
)
set_property(TARGET scap_engine_gvisor_o PROPERTY POSITION_INDEPENDENT_CODE ON)

target_include_directories(scap_engine_gvisor_o PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<BUILD_INTERFACE:${LIBS_DIR}>
$<BUILD_INTERFACE:${LIBS_DIR}/userspace>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>)

add_dependencies(scap_engine_gvisor_o uthash)
add_dependencies(scap scap_engine_gvisor_o)
target_sources(scap PRIVATE $<TARGET_OBJECTS:scap_engine_gvisor_o>)
Expand Down

0 comments on commit e13bf85

Please sign in to comment.