build: falco version from git when cmake variable exists but empty

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato 2019-07-16 16:57:43 +02:00 committed by Leo Di Donato
parent 0d4fc4bdad
commit 9d4ed8e33e

View File

@ -84,7 +84,7 @@ list(APPEND CMAKE_MODULE_PATH
"${SYSDIG_DIR}/cmake/modules") "${SYSDIG_DIR}/cmake/modules")
# Create the falco version variable according to git index # Create the falco version variable according to git index
if(NOT DEFINED FALCO_VERSION) if(NOT FALCO_VERSION)
include(GetGitRevisionDescription) include(GetGitRevisionDescription)
git_get_exact_tag(FALCO_TAG) git_get_exact_tag(FALCO_TAG)
if(NOT FALCO_TAG) if(NOT FALCO_TAG)