summaryrefslogtreecommitdiff
path: root/cmake/Modules/GrPython.cmake
diff options
context:
space:
mode:
authorPhilip Balister2012-02-27 15:14:16 -0500
committerJohnathan Corgan2012-02-27 13:05:47 -0800
commitb3f43a05b809ce050add7f01ddc6c1c75635d490 (patch)
tree0f485fbe5b87c16b626745fede6056b90a1661be /cmake/Modules/GrPython.cmake
parent7e1ac13d5558eaca2233c4be4c41307b5e61b8f5 (diff)
downloadgnuradio-b3f43a05b809ce050add7f01ddc6c1c75635d490.tar.gz
gnuradio-b3f43a05b809ce050add7f01ddc6c1c75635d490.tar.bz2
gnuradio-b3f43a05b809ce050add7f01ddc6c1c75635d490.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>
Diffstat (limited to 'cmake/Modules/GrPython.cmake')
-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)