Skip to content
Snippets Groups Projects
Commit c938de4b authored by Studer Gabriel's avatar Studer Gabriel
Browse files

remove unnecessary code

CMake now takes care of extracting the major, minor and patch version of Python
parent ed81d1fe
Branches
Tags
No related merge requests found
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment