Dep/Boost: Search for all binary compatible boost installations, not only the one exactly matching MSVC toolset

(cherry picked from commit d808284cde9ec0079d16e6d02d58c3c100987341)
This commit is contained in:
Shauren authored and Ovahlord committed 2026-06-07 21:23:01 +02:00
1 parent 34ecbcd277
commit 3a0277a86a
1 file changed
+4 -1
+4 -1
View File
@@ -22,7 +22,10 @@ if(WIN32)
string(SUBSTRING "${MSVC_TOOLSET_VERSION}" ${_BOOST_MSVC_TOOLSET_VERSION_LENGTH} -1 _BOOST_MSVC_TOOLSET_VERSION_MINOR)
file(TO_CMAKE_PATH "${BOOST_ROOT}" BOOST_ROOT)
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)