Skip to content

Commit

Permalink
build: Fix more errors for shared lib scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Aponte <[email protected]>
  • Loading branch information
federico-sysdig authored and poiana committed Dec 13, 2023
1 parent 06a07b9 commit 1165d26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions userspace/libscap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ endif()
if(HAS_ENGINE_TEST_INPUT)
# Add engine only used for testing
add_subdirectory(engine/test_input)
target_link_libraries(scap PRIVATE scap_engine_test_input)
target_link_libraries(scap PUBLIC scap_engine_test_input)
endif()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_subdirectory(linux)
Expand All @@ -127,7 +127,7 @@ add_library(scap_event_schema STATIC
)
add_dependencies(scap_event_schema uthash)

target_link_libraries(scap PRIVATE scap_event_schema)
target_link_libraries(scap PUBLIC scap_event_schema)

if(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_library(driver_event_schema
Expand All @@ -153,7 +153,7 @@ add_subdirectory(engine/noop)

if(HAS_ENGINE_NODRIVER)
add_subdirectory(engine/nodriver)
target_link_libraries(scap PRIVATE scap_engine_nodriver)
target_link_libraries(scap PUBLIC scap_engine_nodriver)
endif()

if(HAS_ENGINE_SAVEFILE)
Expand All @@ -163,7 +163,7 @@ endif()

if(HAS_ENGINE_SOURCE_PLUGIN)
add_subdirectory(engine/source_plugin)
target_link_libraries(scap PRIVATE scap_engine_source_plugin)
target_link_libraries(scap PUBLIC scap_engine_source_plugin)
endif()

if(HAS_ENGINE_KMOD)
Expand Down

0 comments on commit 1165d26

Please sign in to comment.