Skip to content

Commit 9d5c46e

Browse files
committed
[CMake] Clean dependancies section
1 parent 4d77c0e commit 9d5c46e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,16 @@ ENDIF(EIGEN_NUMPY_ALIGNED)
5757
# --- DEPENDANCIES -----------------------------------
5858
# ----------------------------------------------------
5959
ADD_REQUIRED_DEPENDENCY("eigen3 >= 3.0.5")
60+
6061
SET(BOOST_COMPONENTS python)
6162
SEARCH_FOR_BOOST()
62-
set(Python_ADDITIONAL_VERSIONS 2.7)
63-
FINDPYTHON()
63+
# Add Boost path to include directories.
64+
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
65+
66+
FINDPYTHON(2.7 EXACT REQUIRED)
67+
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})
6468
FIND_NUMPY()
69+
INCLUDE_DIRECTORIES(${NUMPY_INCLUDE_DIRS})
6570

6671
# ----------------------------------------------------
6772
# --- INCLUDE ----------------------------------------
@@ -99,9 +104,6 @@ ENDFOREACH(header)
99104
# ----------------------------------------------------
100105
# --- TARGETS ----------------------------------------
101106
# ----------------------------------------------------
102-
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIRS})
103-
# Add Boost path to include directories.
104-
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
105107

106108
SET(${PROJECT_NAME}_SOURCES
107109
src/exception.cpp

0 commit comments

Comments
 (0)