[hamradio-commits] [gnss-sdr] 206/303: Add QA_PYTHON_EXECUTABLE variable

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:36:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.

commit 4694dca4f0feb5739a5224fc3b792893eee30b67
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Mon Dec 26 12:29:05 2016 +0100

    Add QA_PYTHON_EXECUTABLE variable
---
 cmake/Modules/SetupPython.cmake | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/cmake/Modules/SetupPython.cmake b/cmake/Modules/SetupPython.cmake
index 21d15dc..d3c2b3a 100644
--- a/cmake/Modules/SetupPython.cmake
+++ b/cmake/Modules/SetupPython.cmake
@@ -25,8 +25,15 @@ else(PYTHON_EXECUTABLE)
 
 endif(PYTHON_EXECUTABLE)
 
+if (CMAKE_CROSSCOMPILING)
+    set(QA_PYTHON_EXECUTABLE "/usr/bin/python")
+else (CMAKE_CROSSCOMPILING)
+    set(QA_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
+endif(CMAKE_CROSSCOMPILING)
+
 #make the path to the executable appear in the cmake gui
 set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter")
+set(QA_PYTHON_EXECUTABLE ${QA_PYTHON_EXECUTABLE} CACHE FILEPATH "python interpreter for QA tests")
 
 #make sure we can use -B with python (introduced in 2.6)
 if(PYTHON_EXECUTABLE)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list