mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-16 21:27:38 +00:00
Add curl dependency
This commit is contained in:
parent
0a294cd5e5
commit
4c371e5b1d
@ -24,7 +24,25 @@ endif()
|
||||
|
||||
set(PACKAGE_NAME "draios-digwatch")
|
||||
|
||||
add_subdirectory(${PROJECT_SOURCE_DIR}/../sysdig ${PROJECT_BINARY_DIR}/sysdig)
|
||||
add_definitions(-DK8S_DISABLE_THREAD)
|
||||
|
||||
set(SYSDIG_DIR ${PROJECT_SOURCE_DIR}/../sysdig)
|
||||
|
||||
add_subdirectory(${SYSDIG_DIR} ${PROJECT_BINARY_DIR}/sysdig)
|
||||
|
||||
set(CURL_BUNDLE_DIR "${sysdig_BINARY_DIR}/curl-prefix/src/curl")
|
||||
set(CURL_INCLUDE_DIR "${CURL_BUNDLE_DIR}/include/")
|
||||
set(CURL_LIBRARIES "${CURL_BUNDLE_DIR}/lib/.libs/libcurl.a")
|
||||
if(NOT USE_BUNDLED_OPENSSL)
|
||||
set(CURL_SSL_OPTION "")
|
||||
else()
|
||||
set(CURL_SSL_OPTION "--with-ssl=${OPENSSL_INSTALL_DIR}")
|
||||
endif()
|
||||
|
||||
message(STATUS "Using bundled curl in '${CURL_BUNDLE_DIR}'")
|
||||
message(STATUS "Using SSL for curl in '${CURL_SSL_OPTION}'")
|
||||
|
||||
|
||||
|
||||
add_subdirectory(userspace/digwatch)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp/third-party/jsoncpp)
|
||||
|
||||
if(NOT APPLE)
|
||||
include_directories("${CURL_INCLUDE_DIR}")
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libscap)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/../sysdig/userspace/libsinsp)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user