cmake: Fix Boost::Python finder on Gentoo
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
7cb42f4368
commit
d3f19cc27e
@ -52,8 +52,22 @@ endwhile ()
|
|||||||
|
|
||||||
if (NOT Boost_PYTHON_FOUND)
|
if (NOT Boost_PYTHON_FOUND)
|
||||||
find_package(Boost COMPONENTS python3 ${boost_libs})
|
find_package(Boost COMPONENTS python3 ${boost_libs})
|
||||||
|
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
||||||
|
set(Boost_PYTHON_FOUND TRUE)
|
||||||
|
endif ()
|
||||||
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})
|
||||||
|
if ("${Boost_LIBRARIES}" MATCHES ".*(python|PYTHON).*" )
|
||||||
|
set(Boost_PYTHON_FOUND TRUE)
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (NOT Boost_PYTHON_FOUND )
|
||||||
|
message( FATAL_ERROR "No version of Boost::Python 3.x could be found.")
|
||||||
|
endif ()
|
||||||
include(gui/gui.cmake)
|
include(gui/gui.cmake)
|
||||||
|
|
||||||
include_directories(common/ gui/ ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
|
include_directories(common/ gui/ ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
|
||||||
|
Loading…
Reference in New Issue
Block a user