diff --git a/CMake/FindBoost.cmake b/CMake/FindBoost.cmake index 913b6b5c1892e8c66e20d54ffebe9cf989e27d12..c07b392e53882dc787f3990deb0572b0ddc86e98 100644 --- a/CMake/FindBoost.cmake +++ b/CMake/FindBoost.cmake @@ -69,14 +69,10 @@ if("${Boost_FIND_COMPONENTS}" MATCHES "python") string(REPLACE "python" "python3" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") else(APPLE) - # On ubuntu, boost-python for python 3 is called e.g. boost-python-py35 + # On ubuntu, boost-python for python 3 is called e.g. boost_python-py35 string(REPLACE "python" "python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") - if(NOT Boost_python_FOUND) - string(REPLACE "python-py${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}" - "python3" - Boost_FIND_COMPONENTS "${Boost_FIND_COMPONENTS}") endif(NOT Boost_python_FOUND) endif(APPLE) endif(PYTHON_VERSION_MAJOR GREATER 2)