GBE: define python interpreter by cmake variable
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 17 Sep 2013 03:41:50 +0000 (11:41 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 17 Sep 2013 06:56:49 +0000 (14:56 +0800)
commit5b64170ef5e3e78d038186fb1132b11a8fec308e
tree38acc7b26428d30a18d01cbd353eb83a2b2b708d
parent2c6bc5813bcb88dba4e1fd42455e718a96937093
GBE: define python interpreter by cmake variable

In some distros, python is linked to python3 not
python2, and GBE can't be built on such distros
without modification.

CMake provides a variable PYTHON_EXECUTABLE.
By default, this variable is the same as
`/usr/bin/env python`, and if another python2
interpreter is needed, just add this defination in
`cmake` command.

-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python2

And this will change PYTHON_EXECUTABLE to
/path/to/python2

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/CMakeLists.txt