aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-25 11:22:58 +0100
committerDamjan Marion <damarion@cisco.com>2019-01-25 11:22:58 +0100
commita2e29e7705d3b2d5f2fa8c48b083f50f6faa3f3e (patch)
tree86bb8688dfca8c16096f6dbaee5ef0b910b55d14 /src/cmake
parent69a1d6452f8c1130ff6d6153f6d0cde843491c08 (diff)
cmake: execute git from src directory
Thanks Eliot.... Change-Id: I19c9557bf827d4a5b2af344f6f4eedf25cda86d7 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake')
-rw-r--r--src/cmake/pack.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmake/pack.cmake b/src/cmake/pack.cmake
index 1df19811f5b..0da3093b1a0 100644
--- a/src/cmake/pack.cmake
+++ b/src/cmake/pack.cmake
@@ -36,6 +36,7 @@ macro(add_vpp_packaging name)
# extract version from git
execute_process(
COMMAND git describe --long --match v*
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE VER
OUTPUT_STRIP_TRAILING_WHITESPACE
)