From c938de4b52a653a4db477960ef3315d8555aba7a Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Mon, 9 Nov 2020 10:21:00 +0100 Subject: [PATCH] remove unnecessary code CMake now takes care of extracting the major, minor and patch version of Python --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1597417c1..6c086677e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,14 +188,9 @@ endif() # Python needed before Boost find_package(Python 3.6 REQUIRED COMPONENTS Interpreter Development) -# Split version string -string(REPLACE "." ";" _python_version_list ${Python_VERSION}) -list(GET _python_version_list 0 Python_VERSION_MAJOR) -list(GET _python_version_list 1 Python_VERSION_MINOR) # where Python modules live set(PYTHON_MODULE_PATH "python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages/") - if(BOOST_VERSION) message(STATUS "forcing boost to version ${BOOST_VERSION}") set(_BOOST_MIN_VERSION ${BOOST_VERSION}) -- GitLab