Skip to content

Commit bc5ba2d

Browse files
committed
[CMake] Remove useless Python instructions
1 parent 74e590e commit bc5ba2d

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

CMakeLists.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ ENDIF(WIN32)
5858
# ----------------------------------------------------
5959
OPTION (BUILD_UNIT_TESTS "Build the unitary tests" ON)
6060

61-
SET(Python_ADDITIONAL_VERSIONS 3.5)
6261
FINDPYTHON()
6362

6463
INCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})
@@ -70,23 +69,11 @@ INCLUDE_DIRECTORIES(SYSTEM ${NUMPY_INCLUDE_DIRS})
7069
# ----------------------------------------------------
7170
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5")
7271

73-
if (${PYTHON_VERSION_MAJOR} EQUAL 3)
74-
if(UNIX)
75-
set( BOOST_COMPONENTS python-py35)
76-
else()
77-
set( BOOST_COMPONENTS python3)
78-
endif()
79-
else()
80-
SET(BOOST_COMPONENTS python)
81-
endif()
82-
83-
72+
SET(BOOST_COMPONENTS python)
8473
SEARCH_FOR_BOOST()
8574
# Add Boost path to include directories.
8675
INCLUDE_DIRECTORIES(SYSTEM ${Boost_INCLUDE_DIRS})
8776

88-
#FINDPYTHON(2.7 EXACT REQUIRED)
89-
9077
# ----------------------------------------------------
9178
# --- INCLUDE ----------------------------------------
9279
# ----------------------------------------------------

0 commit comments

Comments
 (0)