summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Balister2012-02-27 15:14:16 -0500
committerPhilip Balister2012-02-27 15:36:11 -0500
commit855e29df017d002ac2c52537ebde2dc6925baf34 (patch)
treef69cdb320a5cf7e1d92147c9216f337e8478b1e4
parente4693dfbab735914db1947031c62eef7844e7393 (diff)
downloadgnuradio-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.cmake4
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)