aboutsummaryrefslogtreecommitdiffstats
path: root/mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-05-31 19:11:11 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:58 -0800
commitcd533c8080287f8558cdb283d28ad00661c1a164 (patch)
treee3c082e730b1cf09d2be184f7fc5d4102a38e2d7 /mpm
parent6183d9eeaa2cae6ca859b0a2f125d13842f57c39 (diff)
downloaduhd-cd533c8080287f8558cdb283d28ad00661c1a164.tar.gz
uhd-cd533c8080287f8558cdb283d28ad00661c1a164.tar.bz2
uhd-cd533c8080287f8558cdb283d28ad00661c1a164.zip
mpm/cmake: Remove invalid additional Python versions
Diffstat (limited to 'mpm')
-rw-r--r--mpm/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/mpm/CMakeLists.txt b/mpm/CMakeLists.txt
index 25ccb8afe..35330cd39 100644
--- a/mpm/CMakeLists.txt
+++ b/mpm/CMakeLists.txt
@@ -75,7 +75,11 @@ MESSAGE(STATUS "Boost libraries: ${Boost_LIBRARIES}")
########################################################################
SET(MPM_PYTHON_VER 2 CACHE STRING "Python version (2 or 3)")
-SET(PYTHON_ADDITIONAL_VERSIONS 2.7 3.4 3.5)
+IF(MPM_PYTHON_VER EQUAL 2)
+ SET(PYTHON_ADDITIONAL_VERSIONS 2.7)
+ELSE()
+ SET(PYTHON_ADDITIONAL_VERSIONS 3.4 3.5)
+ENDIF()
FIND_PACKAGE(PythonInterp ${MPM_PYTHON_VER})
#IF(MPM_PYTHON_VER EQUAL "2")
#FIND_PACKAGE(PythonInterp)