File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ build_tests=
7878show_help=
7979many_jobs=
8080verbose=
81- while getopts :BSdhijtv param
81+ install_path=
82+ while getopts :BSdhijtvI: param
8283do
8384 case $param in
8485 i) install=yes ;;
8990 v) verbose=yes ;;
9091 j) many_jobs=yes ;;
9192 t) build_tests=yes ;;
93+ I) install_path=${OPTARG} ; install=yes ;;
9294 ? ) die " unknown option. See -h for help."
9395 esac
9496done
@@ -159,6 +161,7 @@ case "$1" in
159161 REPODIR=cachelib/external/$NAME
160162 SRCDIR=$REPODIR
161163 external_git_clone=yes
164+ external_git_tag=8.0.1
162165 cmake_custom_params=" -DBUILD_SHARED_LIBS=ON"
163166 if test " $build_tests " = " yes" ; then
164167 cmake_custom_params=" $cmake_custom_params -DFMT_TEST=YES"
@@ -275,7 +278,7 @@ test -d cachelib || die "expected 'cachelib' directory not found in $PWD"
275278
276279
277280# After ensuring we are in the correct directory, set the installation prefix"
278- PREFIX=" $PWD /opt/cachelib/"
281+ PREFIX=${install_path :- " $PWD /opt/cachelib/" }
279282CMAKE_PARAMS=" $CMAKE_PARAMS -DCMAKE_INSTALL_PREFIX=$PREFIX "
280283CMAKE_PREFIX_PATH=" $PREFIX /lib/cmake:$PREFIX /lib64/cmake:$PREFIX /lib:$PREFIX /lib64:$PREFIX :${CMAKE_PREFIX_PATH:- } "
281284export CMAKE_PREFIX_PATH
You can’t perform that action at this time.
0 commit comments