From cd533c8080287f8558cdb283d28ad00661c1a164 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 31 May 2017 19:11:11 -0700 Subject: mpm/cmake: Remove invalid additional Python versions --- mpm/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mpm') 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) -- cgit v1.2.3