From 9d4ed8e33e19078fb4bf21394a019c267840f74e Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Tue, 16 Jul 2019 16:57:43 +0200 Subject: [PATCH] build: falco version from git when cmake variable exists but empty Signed-off-by: Leonardo Di Donato --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee9cdfb0..dca2a0fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,7 @@ list(APPEND CMAKE_MODULE_PATH "${SYSDIG_DIR}/cmake/modules") # Create the falco version variable according to git index -if(NOT DEFINED FALCO_VERSION) +if(NOT FALCO_VERSION) include(GetGitRevisionDescription) git_get_exact_tag(FALCO_TAG) if(NOT FALCO_TAG)