From 6077c97a60e06e17f8d33070ee3e4843c190f28d Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 28 Jan 2019 17:55:59 +0100 Subject: cmake: fix out-of-git-tree build Change-Id: Ib94637ec09799c23f3179599b54a2be6e2768425 Signed-off-by: Damjan Marion --- src/scripts/generate_version_h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripts') diff --git a/src/scripts/generate_version_h b/src/scripts/generate_version_h index 993a682954b..f4705489c87 100755 --- a/src/scripts/generate_version_h +++ b/src/scripts/generate_version_h @@ -22,7 +22,7 @@ cat > ${1} << __EOF__ #define VPP_BUILD_DATE "$(date)" #define VPP_BUILD_USER "$(whoami)" #define VPP_BUILD_HOST "$(hostname)" -#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel)" +#define VPP_BUILD_TOPDIR "$(git rev-parse --show-toplevel 2> /dev/null)" #define VPP_BUILD_VER "$(scripts/version)" #endif __EOF__ -- cgit 1.2.3-korg