Fix boost_python library detection on CentOS 8

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/11/head
François Andriot 4 anni fa committato da Slávek Banko
parent 97162a9f44
commit 16a409af6a
Non sono state trovate chiavi note per questa firma nel database
ID Chiave GPG: 608F5293A04BE668

@ -100,6 +100,10 @@ if( BUILD_KIG AND WITH_KIG_PYTHON_SCRIPTING )
find_package( Boost COMPONENTS python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR} )
if( NOT Boost_FOUND )
find_package( Boost COMPONENTS python${PYTHON_VERSION_MAJOR} )
endif( )
if( NOT Boost_FOUND )
find_package( Boost COMPONENTS python )
endif( )
@ -110,6 +114,9 @@ if( NOT Boost_FOUND )
set( KIG_ENABLE_PYTHON_SCRIPTING 1 )
endif( NOT Boost_FOUND )
if( NOT Boost_PYTHON_LIBRARY AND Boost_PYTHON${PYTHON_VERSION_MAJOR}_LIBRARY )
set( Boost_PYTHON_LIBRARY "${Boost_PYTHON${PYTHON_VERSION_MAJOR}_LIBRARY}" )
endif( )
if( NOT Boost_PYTHON_LIBRARY AND Boost_PYTHON${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}_LIBRARY )
set( Boost_PYTHON_LIBRARY "${Boost_PYTHON${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}_LIBRARY}" )
endif( )

Caricamento…
Annulla
Salva