diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index d1c0eba17d8..dc0081f7526 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -213,7 +213,7 @@ macro(build_boost version) endif() add_dependencies(Boost::${c} Boost) if(c MATCHES "^python") - set(c "python${Python_VERSION_MAJOR}${Python_VERSION_MINOR}") + set(c "python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}") endif() if(Boost_USE_STATIC_LIBS) set(Boost_${upper_c}_LIBRARY