diff options
author | Philip Balister | 2012-02-27 15:14:16 -0500 |
---|---|---|
committer | Philip Balister | 2012-02-27 15:36:11 -0500 |
commit | 855e29df017d002ac2c52537ebde2dc6925baf34 (patch) | |
tree | f69cdb320a5cf7e1d92147c9216f337e8478b1e4 | |
parent | e4693dfbab735914db1947031c62eef7844e7393 (diff) | |
download | gnuradio-855e29df017d002ac2c52537ebde2dc6925baf34.tar.gz gnuradio-855e29df017d002ac2c52537ebde2dc6925baf34.tar.bz2 gnuradio-855e29df017d002ac2c52537ebde2dc6925baf34.zip |
Do not rewrite path to python interpreter for cross builds.
If you rewrite the path to the python interpreter during a cross build, you
end up with the path to the build environment python interpreter, which may
not be the same as teh path on the target.
Signed-off-by: Philip Balister <philip@opensdr.com>
Signed-off-by: Josh Blum <jblum@joshknows.com>
-rw-r--r-- | cmake/Modules/GrPython.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Modules/GrPython.cmake b/cmake/Modules/GrPython.cmake index e8e07b244..eff9cbcdc 100644 --- a/cmake/Modules/GrPython.cmake +++ b/cmake/Modules/GrPython.cmake @@ -183,6 +183,10 @@ function(GR_PYTHON_INSTALL) #################################################################### file(TO_NATIVE_PATH ${PYTHON_EXECUTABLE} pyexe_native) + if (CMAKE_CROSSCOMPILING) + set(pyexe_native /usr/bin/env python) + endif() + foreach(pyfile ${GR_PYTHON_INSTALL_PROGRAMS}) get_filename_component(pyfile_name ${pyfile} NAME) get_filename_component(pyfile ${pyfile} ABSOLUTE) |