summaryrefslogtreecommitdiffstats
path: root/src/cmake/pack.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmake/pack.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
)