Skip to content

Commit

Permalink
Fix Python 2 bindings support in CMake scripts
Browse files Browse the repository at this point in the history
#57 introduced two issues:
 * wrong name for the variable that holds Boost Python component;
 * unconditional search for `python3`.
  • Loading branch information
taketwo authored and HannesSommer committed Apr 25, 2018
1 parent a59cd95 commit 7e378f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ if (PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND)
endif(PYTHON_VERSION_MAJOR GREATER 2)
endif (PYTHON_DEB_INSTALL_TARGET)

find_package(Boost COMPONENTS ${BOOST_PYTHON_PACKAGE} python3)
message(Boost_PYTHON3_FOUND found: ${Boost_PYTHON3_FOUND}})
find_package(Boost COMPONENTS ${BOOST_PYTHON_COMPONENT})
find_python_module(numpy)
find_package_handle_standard_args(numpy DEFAULT_MSG PY_NUMPY)
if (Boost_FOUND AND NUMPY_FOUND)
Expand Down

0 comments on commit 7e378f6

Please sign in to comment.