Fixed argument pass problem

Pass additional arguments to cmake.
This commit is contained in:
Dániel Varga 2013-05-08 20:31:12 +02:00
parent 686f7951a7
commit 27011adade

View File

@ -72,9 +72,9 @@ function install {
pushd $build_dir pushd $build_dir
if [[ `uname -s` == "Darwin" ]]; then if [[ `uname -s` == "Darwin" ]]; then
cmake -G "Unix Makefiles" $(python_finder) $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" $(python_finder) "$@" . $ycm_dir/cpp
else else
cmake -G "Unix Makefiles" $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
fi fi
make -j $(num_cores) ycm_core make -j $(num_cores) ycm_core
@ -87,7 +87,7 @@ function testrun {
build_dir=`mktemp -d -t ycm_build.XXXXXX` build_dir=`mktemp -d -t ycm_build.XXXXXX`
pushd $build_dir pushd $build_dir
cmake -G "Unix Makefiles" $1 . $ycm_dir/cpp cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
make -j $(num_cores) ycm_core_tests make -j $(num_cores) ycm_core_tests
cd ycm/tests cd ycm/tests
LD_LIBRARY_PATH=$ycm_dir/python ./ycm_core_tests LD_LIBRARY_PATH=$ycm_dir/python ./ycm_core_tests