diff options
author | François Andriot <[email protected]> | 2020-04-14 08:49:44 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-10 18:45:01 +0200 |
commit | 16a409af6aaa08a49519fc185df7966fcdc99e7f (patch) | |
tree | afd2a50857783ea14576ae03bad1bfd4d7f95114 | |
parent | 97162a9f4404cdb4aa129d8916fbfb15c480a459 (diff) | |
download | tdeedu-16a409af6aaa08a49519fc185df7966fcdc99e7f.tar.gz tdeedu-16a409af6aaa08a49519fc185df7966fcdc99e7f.zip |
Fix boost_python library detection on CentOS 8
Signed-off-by: François Andriot <[email protected]>
-rw-r--r-- | ConfigureChecks.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 24c10fa9..a2d6593a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -101,6 +101,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( ) |