Skip to content

Commit

Permalink
Merge pull request #242 from slavoutich/enh/cmake_pick_right_libpython
Browse files Browse the repository at this point in the history
Link with a correct Python version.
  • Loading branch information
imranashraf authored Jul 18, 2019
2 parents 7b70eb8 + 0d57588 commit 873c7dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion swig/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FIND_PACKAGE(SWIG REQUIRED)
INCLUDE(${SWIG_USE_FILE})

FIND_PACKAGE(PythonLibs)
FIND_PACKAGE(PythonInterp)
if (${PYTHONINTERP_FOUND})
FIND_PACKAGE(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}")
endif()

INCLUDE_DIRECTORIES(
${PYTHON_INCLUDE_PATH}
${LEMON_INCLUDE_DIRS}
Expand Down

0 comments on commit 873c7dc

Please sign in to comment.