Skip to content

Commit

Permalink
chore: improve libcurl dependency reference
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Aponte <[email protected]>
  • Loading branch information
federico-sysdig committed Nov 4, 2024
1 parent f82c686 commit 9acce30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmake/modules/curl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ else()
FILES_MATCHING
PATTERN "*.h"
)
find_package(CURL REQUIRED)
endif()
endif()

Expand Down
11 changes: 7 additions & 4 deletions userspace/libsinsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ endif()

set_sinsp_target_properties(sinsp)

target_link_libraries(
sinsp
PUBLIC scap
PRIVATE "${CURL_LIBRARIES}" "${JSONCPP_LIB}" "${RE2_LIB}"
target_link_libraries(sinsp
PUBLIC
scap
PRIVATE
CURL::libcurl
${JSONCPP_LIB}
${RE2_LIB}
)

if(NOT EMSCRIPTEN)
Expand Down

0 comments on commit 9acce30

Please sign in to comment.