summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTom Rondeau2012-02-27 16:01:25 -0500
committerTom Rondeau2012-02-27 16:01:25 -0500
commitf2d83816f586f675ac88de73f5ecfec802519c4b (patch)
treecc9f846b60053cdea2f36ec8af6a72f7d980544f /cmake
parentcff2b9ce9f899f495eba27839aef48001637df76 (diff)
parent855e29df017d002ac2c52537ebde2dc6925baf34 (diff)
downloadgnuradio-f2d83816f586f675ac88de73f5ecfec802519c4b.tar.gz
gnuradio-f2d83816f586f675ac88de73f5ecfec802519c4b.tar.bz2
gnuradio-f2d83816f586f675ac88de73f5ecfec802519c4b.zip
Merge remote-tracking branch 'balister/python-env'
Diffstat (limited to '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)