update: falco version from cmake variable

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2019-07-16 16:13:22 +02:00
committed by Leo Di Donato
parent 85a94d67d3
commit 0d4fc4bdad
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ limitations under the License.
#pragma once
#define FALCO_VERSION "${FALCO_VERSION}"
#define FALCO_VERSION "@FALCO_VERSION@"
#define FALCO_LUA_DIR "${CMAKE_INSTALL_PREFIX}/${FALCO_SHARE_DIR}/lua/"
#define FALCO_SOURCE_DIR "${PROJECT_SOURCE_DIR}"

View File

@@ -76,7 +76,7 @@ static void restart_falco(int signal)
static void usage()
{
printf(
"falco version " FALCO_VERSION "\n"
"Falco version is " FALCO_VERSION "\n"
"Usage: falco [options]\n\n"
"Options:\n"
" -h, --help Print this page\n"