diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-12-23 13:38:26 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-12-23 13:38:26 +0100 |
| commit | d808284cde9ec0079d16e6d02d58c3c100987341 (patch) | |
| tree | 5fd96f9db416376012890bda291979bb3af98d66 | |
| parent | 9a5df1987879e881426b4c1fc2c54f11aa28aaab (diff) | |
Dep/Boost: Search for all binary compatible boost installations, not only the one exactly matching MSVC toolset
| -rw-r--r-- | dep/boost/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt index 782e8aadc41..79d7fbf3bae 100644 --- a/dep/boost/CMakeLists.txt +++ b/dep/boost/CMakeLists.txt @@ -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) |
