1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-30 05:34:18 +00:00

Added python37 as well, fixes latest msys2 build and macOS

This commit is contained in:
Miodrag Milanovic
2018-07-12 14:36:28 +02:00
parent 9e06954edb
commit 24618ee800

View File

@@ -133,6 +133,13 @@ if (BUILD_PYTHON)
endif ()
endif ()
if (NOT Boost_PYTHON_FOUND)
find_package(Boost COMPONENTS python37 ${boost_libs})
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
set(Boost_PYTHON_FOUND TRUE)
endif ()
endif ()
if (NOT Boost_PYTHON_FOUND)
STRING(REGEX REPLACE "([0-9]+\\.[0-9]+).*" "\\1" gentoo_version ${PYTHONLIBS_VERSION_STRING})
find_package(Boost COMPONENTS python-${gentoo_version} ${boost_libs})