Browse Source

Fix boost_python library detection on CentOS 8

Signed-off-by: François Andriot <francois.andriot@free.fr>
pull/11/head
François Andriot 7 months ago
committed by Slávek Banko
parent
commit
16a409af6a
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      ConfigureChecks.cmake

+ 7
- 0
ConfigureChecks.cmake View File

@@ -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( )


Loading…
Cancel
Save