Build: Ensure paths passed to find_package HINTS argument only use forward slashes since that is what cmake expects

This commit is contained in:
Shauren
2024-09-21 00:06:52 +02:00
parent 4d59558c56
commit 26cebef0fe

View File

@@ -21,6 +21,7 @@ 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)
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")
unset(_BOOST_MSVC_TOOLSET_VERSION_LENGTH)