summaryrefslogtreecommitdiff
path: root/cmake/Modules/GrPython.cmake
diff options
context:
space:
mode:
authorJohnathan Corgan2012-02-27 13:06:27 -0800
committerJohnathan Corgan2012-02-27 13:06:27 -0800
commit2dfcc2dc875ae82c45ab32cd34d170dc20424fc7 (patch)
treef2b41a5522d1ebbbc3a2a0d035eca8314e1cc395 /cmake/Modules/GrPython.cmake
parent739ac87e34242b0fbcccb4a8b10d3eb16ec2723d (diff)
parente0dec91086d82b23a9b47cc05c08ccb55cf1351c (diff)
downloadgnuradio-2dfcc2dc875ae82c45ab32cd34d170dc20424fc7.tar.gz
gnuradio-2dfcc2dc875ae82c45ab32cd34d170dc20424fc7.tar.bz2
gnuradio-2dfcc2dc875ae82c45ab32cd34d170dc20424fc7.zip
Merge branch 'master' into next
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)