From 5d21936f602d99f83a008b27ad1e6881a05c30d1 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Tue, 10 Oct 2017 14:47:33 -0700 Subject: [PATCH] Move rules cmakefiles from engine to falco itself The rules CMakeLists.txt, which controls the installation of the falco rules files, was in the engine CMakeLists.txt, which meant that programs that included the engine would also include rules files. This may not always be desired, so move the rules CMakeLists.txt to the main falco CMakeLists.txt instead. --- CMakeLists.txt | 2 ++ userspace/engine/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7265486..989254fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -392,6 +392,8 @@ endif() install(FILES falco.yaml DESTINATION "${FALCO_ETC_DIR}") +add_subdirectory(rules) + if(CMAKE_SYSTEM_NAME MATCHES "Linux") add_subdirectory("${SYSDIG_DIR}/driver" "${PROJECT_BINARY_DIR}/driver") endif() diff --git a/userspace/engine/CMakeLists.txt b/userspace/engine/CMakeLists.txt index 2f6a0c31..8192aaac 100644 --- a/userspace/engine/CMakeLists.txt +++ b/userspace/engine/CMakeLists.txt @@ -27,5 +27,3 @@ install(DIRECTORY lua DESTINATION "${FALCO_SHARE_DIR}" FILES_MATCHING PATTERN *.lua) endif() - -add_subdirectory("${PROJECT_SOURCE_DIR}/../falco/rules" "${PROJECT_BINARY_DIR}/rules")