Only use python_finder on OSX.

This commit is contained in:
Robert D. Blanchet Jr 2013-02-17 11:01:31 -08:00
parent e5b9ffb637
commit 8bc9073ef1

View File

@ -50,8 +50,14 @@ function install {
ycm_dir=`pwd` ycm_dir=`pwd`
build_dir=`mktemp -d -t ycm_build.XXXX` build_dir=`mktemp -d -t ycm_build.XXXX`
pushd $build_dir pushd $build_dir
cmake -G "Unix Makefiles" $(python_finder) $1 . $ycm_dir/cpp
make ycm_core if [[ `uname -s` == "Darwin" ]]; then
cmake -G "Unix Makefiles" $(python_finder) $1 . $ycm_dir/cpp
else
cmake -G "Unix Makefiles" $1 . $ycm_dir/cpp
fi
#make ycm_core
popd popd
} }