summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2021-05-04 11:34:37 +0200
committerDamjan Marion <dmarion@me.com>2021-05-04 12:21:16 +0000
commit7d64631e516ba6c3fd0be12deda00862c1edd69a (patch)
treec8bcc400f8acb22721438687a6d499c0ac23bb0f /configure
parent5a504b04fcac2a1ed246530cf6f82d17f77d5788 (diff)
misc: improve src detection in configure script
Change-Id: I2c45b160d76883044a3a7db0afcac0c56bcd2bcf Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: feature
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 384cfcf956e..71af538b98e 100755
--- a/configure
+++ b/configure
@@ -8,6 +8,7 @@ build_dir=.
install_dir=/usr/local
build_type=release
prefix_path=/opt/vpp/external/$(uname -m)/
+src_dir="$(dirname "$(readlink -f "$0")")"
help()
{
@@ -75,7 +76,7 @@ done
cmake \
-G Ninja \
- -S src \
+ -S ${src_dir}/src \
-B ${build_dir} \
-DCMAKE_PREFIX_PATH=${prefix_path} \
-DCMAKE_INSTALL_PREFIX=${install_dir} \