From b3998a6b44db2867e666042ed4b6f1e6f1394013 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Mon, 23 Mar 2020 13:44:31 +0000 Subject: [PATCH] build(scripts): insert versions into falco-driver-version and install it Signed-off-by: Leonardo Di Donato --- scripts/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index c532b417..a2d6bfe8 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -23,7 +23,9 @@ file(COPY "${PROJECT_SOURCE_DIR}/scripts/debian/falco" file(COPY "${PROJECT_SOURCE_DIR}/scripts/rpm/falco" DESTINATION "${PROJECT_BINARY_DIR}/scripts/rpm") +configure_file(falco-driver-loader falco-driver-loader @ONLY) + if(CMAKE_SYSTEM_NAME MATCHES "Linux") - install(PROGRAMS ${PROJECT_SOURCE_DIR}/scripts/falco-probe-loader + install(PROGRAMS ${PROJECT_BINARY_DIR}/scripts/falco-driver-loader DESTINATION ${FALCO_BIN_DIR}) endif()