From 68340944b1c96b18cce1edfc332b63e3611bb2b1 Mon Sep 17 00:00:00 2001 From: Lorenzo Fontana Date: Fri, 21 Jun 2019 14:02:55 +0000 Subject: [PATCH] new: use sysdig modules to build libscap Signed-off-by: Lorenzo Fontana Co-Authored-By: Leonardo Di Donato --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 088c0c08..cabe1118 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -606,8 +606,13 @@ add_subdirectory(test) add_subdirectory(rules) add_subdirectory(docker) +# Add path for custom CMake modules used to build dependencies from Sysdig (libscap, libsinsp) +list(APPEND CMAKE_MODULE_PATH + "${SYSDIG_DIR}/cmake/modules") + if(CMAKE_SYSTEM_NAME MATCHES "Linux") add_subdirectory("${SYSDIG_DIR}/driver" "${PROJECT_BINARY_DIR}/driver") + include(FindMakedev) endif() add_subdirectory("${SYSDIG_DIR}/userspace/libscap" "${PROJECT_BINARY_DIR}/userspace/libscap") add_subdirectory("${SYSDIG_DIR}/userspace/libsinsp" "${PROJECT_BINARY_DIR}/userspace/libsinsp")