mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-27 18:40:22 +00:00
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:
parent
0d4fc4bdad
commit
9d4ed8e33e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user