Skip to content

Commit 9182e18

Browse files
committed
cmake: look for additional BOOST_PYTHON lib names
boost_python3 is used on Fedora 29. boost_python38 is used on Fedora 31. boost_python-3.x is used on Gentoo Linux. Bug: https://bugzilla.redhat.com/1705427
1 parent 1b6680c commit 9182e18

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Diff for: CMakeLists.txt

+12-3
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,19 @@ option(BUILD_PYCSDIFF "Set to ON to enable python binding" ON)
7373
if (BUILD_PYCSDIFF)
7474
set(BOOST_PYTHON_LIB_NAME "boost_python"
7575
CACHE STRING "Name of the boost_python library")
76+
77+
# boost_python3 is used on Fedora 29.
78+
# boost_python38 is used on Fedora 31.
79+
# boost_python-3.x is used on Gentoo Linux.
7680
find_library(BOOST_PYTHON NAMES ${BOOST_PYTHON_LIB_NAME}
77-
boost_python39
78-
boost_python38
79-
boost_python37)
81+
boost_python3
82+
boost_python39 boost_python-3.9
83+
boost_python38 boost_python-3.8
84+
boost_python37 boost_python-3.7
85+
boost_python36 boost_python-3.6
86+
boost_python35 boost_python-3.5)
87+
88+
message(STATUS "BOOST_PYTHON: ${BOOST_PYTHON}")
8089

8190
# query PYTHON_INCLUDE_DIR
8291
find_package(PythonInterp REQUIRED)

0 commit comments

Comments
 (0)