summaryrefslogtreecommitdiffstats
path: root/host/config
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-05 16:09:49 -0700
committerJosh Blum <josh@joshknows.com>2010-11-05 16:09:49 -0700
commit9d50dea1c2f884835b606ccaa1444e5de96926cb (patch)
treeba0ef20266bcdff0f2ace47077d22f540d018913 /host/config
parent082f619de40a00880b3b25f29c96d572de131662 (diff)
downloaduhd-9d50dea1c2f884835b606ccaa1444e5de96926cb.tar.gz
uhd-9d50dea1c2f884835b606ccaa1444e5de96926cb.tar.bz2
uhd-9d50dea1c2f884835b606ccaa1444e5de96926cb.zip
uhd: dont check for python interp if PYTHON_EXECUTABLE specified
Diffstat (limited to 'host/config')
-rw-r--r--host/config/Python.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/host/config/Python.cmake b/host/config/Python.cmake
index a5080fc40..95cdb4479 100644
--- a/host/config/Python.cmake
+++ b/host/config/Python.cmake
@@ -18,11 +18,13 @@
########################################################################
# Setup Python
########################################################################
-INCLUDE(FindPythonInterp)
+IF(NOT DEFINED PYTHON_EXECUTABLE)
+ INCLUDE(FindPythonInterp)
-IF(NOT PYTHONINTERP_FOUND)
- MESSAGE(FATAL_ERROR "Error: Python interpretor required by the build system.")
-ENDIF(NOT PYTHONINTERP_FOUND)
+ IF(NOT PYTHONINTERP_FOUND)
+ MESSAGE(FATAL_ERROR "Error: Python interpretor required by the build system.")
+ ENDIF(NOT PYTHONINTERP_FOUND)
+ENDIF(NOT DEFINED PYTHON_EXECUTABLE)
MACRO(PYTHON_CHECK_MODULE desc mod cmd have)
MESSAGE(STATUS "Python checking for ${desc}")