cmake: add python38 to list of versions searched for boost components
Also, factor out actual search code (identical across versions). Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
parent
a6a4349bd6
commit
2d66f8e6c9
@ -161,24 +161,13 @@ if (BUILD_PYTHON)
|
|||||||
endwhile ()
|
endwhile ()
|
||||||
|
|
||||||
if (NOT Boost_PYTHON_FOUND)
|
if (NOT Boost_PYTHON_FOUND)
|
||||||
find_package(Boost QUIET COMPONENTS python3 ${boost_libs})
|
foreach (PyVer 3 36 37 38)
|
||||||
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
find_package(Boost QUIET COMPONENTS python${PyVer} ${boost_libs})
|
||||||
set(Boost_PYTHON_FOUND TRUE)
|
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
||||||
endif ()
|
set(Boost_PYTHON_FOUND TRUE)
|
||||||
endif ()
|
break()
|
||||||
|
endif ()
|
||||||
if (NOT Boost_PYTHON_FOUND)
|
endforeach ()
|
||||||
find_package(Boost QUIET COMPONENTS python36 ${boost_libs})
|
|
||||||
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
|
||||||
set(Boost_PYTHON_FOUND TRUE)
|
|
||||||
endif ()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (NOT Boost_PYTHON_FOUND)
|
|
||||||
find_package(Boost QUIET COMPONENTS python37 ${boost_libs})
|
|
||||||
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
|
||||||
set(Boost_PYTHON_FOUND TRUE)
|
|
||||||
endif ()
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT Boost_PYTHON_FOUND)
|
if (NOT Boost_PYTHON_FOUND)
|
||||||
|
Loading…
Reference in New Issue
Block a user