diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 9f7292b75..e423dd292 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -407,7 +407,7 @@ IF (USE_SYSTEM_BOOST) UNSET(Boost_${BOOST_PYTHON_COMPONENT}_FOUND) MESSAGE("++ Looking for System Boost::python") - FIND_PACKAGE(Boost COMPONENTS python3 json log log_setup date_time system filesystem thread chrono atomic REQUIRED) + FIND_PACKAGE(Boost COMPONENTS ${BOOST_PYTHON_COMPONENT} json log log_setup date_time system filesystem thread chrono atomic REQUIRED) IF (Boost_python3_FOUND) MESSAGE("++ Found System Boost::python3 : ${Boost_PYTHON3_LIBRARY}") ELSEIF (Boost_${BOOST_PYTHON_COMPONENT}_FOUND)