From bc5ba2d47e683480230289982da2cde369b3c46a Mon Sep 17 00:00:00 2001 From: jcarpent <jcarpent@laas.fr> Date: Fri, 11 May 2018 14:16:38 +0200 Subject: [PATCH] [CMake] Remove useless Python instructions --- CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be52e7ff..792f78e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,6 @@ ENDIF(WIN32) # ---------------------------------------------------- OPTION (BUILD_UNIT_TESTS "Build the unitary tests" ON) -SET(Python_ADDITIONAL_VERSIONS 3.5) FINDPYTHON() INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS}) @@ -70,23 +69,11 @@ INCLUDE_DIRECTORIES(SYSTEM ${NUMPY_INCLUDE_DIRS}) # ---------------------------------------------------- ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5") -if (${PYTHON_VERSION_MAJOR} EQUAL 3) - if(UNIX) - set( BOOST_COMPONENTS python-py35) - else() - set( BOOST_COMPONENTS python3) - endif() -else() - SET(BOOST_COMPONENTS python) -endif() - - +SET(BOOST_COMPONENTS python) SEARCH_FOR_BOOST() # Add Boost path to include directories. INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS}) -#FINDPYTHON(2.7 EXACT REQUIRED) - # ---------------------------------------------------- # --- INCLUDE ---------------------------------------- # ---------------------------------------------------- -- GitLab