From 76dfc63ba76a24796b54fde6429a55ffc45ff6de Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 23 Dec 2025 13:38:26 +0100 Subject: [PATCH] Dep/Boost: Search for all binary compatible boost installations, not only the one exactly matching MSVC toolset (cherry picked from commit d808284cde9ec0079d16e6d02d58c3c100987341) --- dep/boost/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt index fe3cbe435bd..6a9b42afcf2 100644 --- a/dep/boost/CMakeLists.txt +++ b/dep/boost/CMakeLists.txt @@ -21,7 +21,10 @@ if(WIN32) string(SUBSTRING "${MSVC_TOOLSET_VERSION}" 0 ${_BOOST_MSVC_TOOLSET_VERSION_LENGTH} _BOOST_MSVC_TOOLSET_VERSION_MAJOR) string(SUBSTRING "${MSVC_TOOLSET_VERSION}" ${_BOOST_MSVC_TOOLSET_VERSION_LENGTH} -1 _BOOST_MSVC_TOOLSET_VERSION_MINOR) - set(BOOST_SEARCH_HINTS "${BOOST_ROOT}/lib${PLATFORM}-msvc-${_BOOST_MSVC_TOOLSET_VERSION_MAJOR}.${_BOOST_MSVC_TOOLSET_VERSION_MINOR}/cmake") + while(_BOOST_MSVC_TOOLSET_VERSION_MINOR GREATER_EQUAL 0) + list(APPEND BOOST_SEARCH_HINTS "${BOOST_ROOT}/lib${PLATFORM}-msvc-${_BOOST_MSVC_TOOLSET_VERSION_MAJOR}.${_BOOST_MSVC_TOOLSET_VERSION_MINOR}/cmake") + math(EXPR _BOOST_MSVC_TOOLSET_VERSION_MINOR "${_BOOST_MSVC_TOOLSET_VERSION_MINOR} - 1" OUTPUT_FORMAT DECIMAL) + endwhile() unset(_BOOST_MSVC_TOOLSET_VERSION_LENGTH) unset(_BOOST_MSVC_TOOLSET_VERSION_MAJOR)