Valloric/ycmd — pull request #63 by shacklettbp (2014-12-03 00:39:43+00:00)
Title: Workaround for cmake on systems with boost built against both python 2 and 3

On my Gentoo linux system, boost is built against python 2.7 and 3.4 so there are multiple versions of
the libboost_python library. find_package for boost.python defaults to the highest version of this library
unless a python executable has already been found, in which case it uses the version from the previously found executable. This causes the build to fail when it tries to link into the python3 version of boost.
The added call to find_package sets PYTHON_EXECUTABLE to the python2 binary, so when find_package is called on boost, it will choose the python2 version.