Skip to content

Commit

Permalink
Fix python build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Dec 21, 2019
1 parent 30e04d9 commit 7665811
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,13 @@ IF (NOT HAVE_PY_INTERP)
ENDIF()

FIND_PACKAGE(PythonLibs)
IF (PYTHONLIBS_FOUND AND
((PYTHON3INTERP_FOUND AND 3.4.0 VERSION_LESS ${PYTHONLIBS_VERSION_STRING})
OR
(2.7.0 VERSION_LESS ${PYTHONLIBS_VERSION_STRING})))
SET (HAVE_PY_LIBS 1)
MESSAGE(STATUS "Python ${PYTHONLIBS_VERSION_STRING} libraries found.")
IF (PYTHONLIBS_FOUND)
IF ((PYTHON3INTERP_FOUND AND 3.4.0 VERSION_LESS ${PYTHONLIBS_VERSION_STRING})
OR
(2.7.0 VERSION_LESS ${PYTHONLIBS_VERSION_STRING}))
SET (HAVE_PY_LIBS 1)
MESSAGE(STATUS "Python ${PYTHONLIBS_VERSION_STRING} libraries found.")
ENDIF()
ELSE()
MESSAGE(STATUS "Python libraries NOT found.")
ENDIF()
Expand Down

0 comments on commit 7665811

Please sign in to comment.