From b3f43a05b809ce050add7f01ddc6c1c75635d490 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Mon, 27 Feb 2012 15:14:16 -0500 Subject: 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 Signed-off-by: Josh Blum --- cmake/Modules/GrPython.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit