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 8, 2024
1 parent 0e177db commit 9d60005
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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
8 changes: 7 additions & 1 deletion userspace/libsinsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,15 @@ set_sinsp_target_properties(sinsp)
target_link_libraries(
sinsp
PUBLIC scap
PRIVATE "${CURL_LIBRARIES}" "${JSONCPP_LIB}" "${RE2_LIB}"
PRIVATE ${JSONCPP_LIB} ${RE2_LIB}
)

if(NOT MINIMAL_BUILD)
if(NOT WIN32 AND NOT EMSCRIPTEN)
target_link_libraries(sinsp PRIVATE CURL::libcurl)
endif()
endif()

if(NOT EMSCRIPTEN)
target_link_libraries(
sinsp
Expand Down

0 comments on commit 9d60005

Please sign in to comment.