cmake: Python 3.9 support

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2020-01-29 17:12:07 +00:00
parent ab7078d574
commit 85f4452b0a

View File

@ -171,7 +171,7 @@ if (BUILD_PYTHON)
endwhile () endwhile ()
if (NOT Boost_PYTHON_FOUND) if (NOT Boost_PYTHON_FOUND)
foreach (PyVer 3 36 37 38) foreach (PyVer 3 36 37 38 39)
find_package(Boost QUIET COMPONENTS python${PyVer} ${boost_libs}) find_package(Boost QUIET COMPONENTS python${PyVer} ${boost_libs})
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" ) if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
set(Boost_PYTHON_FOUND TRUE) set(Boost_PYTHON_FOUND TRUE)