summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJohnathan Corgan2012-02-27 13:06:15 -0800
committerJohnathan Corgan2012-02-27 13:06:15 -0800
commite0dec91086d82b23a9b47cc05c08ccb55cf1351c (patch)
treecc9f846b60053cdea2f36ec8af6a72f7d980544f /cmake
parentcff2b9ce9f899f495eba27839aef48001637df76 (diff)
parentb3f43a05b809ce050add7f01ddc6c1c75635d490 (diff)
downloadgnuradio-e0dec91086d82b23a9b47cc05c08ccb55cf1351c.tar.gz
gnuradio-e0dec91086d82b23a9b47cc05c08ccb55cf1351c.tar.bz2
gnuradio-e0dec91086d82b23a9b47cc05c08ccb55cf1351c.zip
Merge branch 'maint'
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)