aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-09-21 00:06:52 +0200
committerOvahlord <dreadkiller@gmx.de>2024-09-21 05:50:20 +0200
commit974fb15360c32b7cc5b2b6a9b4f58de0739c449d (patch)
tree73d8b747d3e0c4dafb1c7cf300210a315f601785
parentf580ac2cde4ffd55da600d8de8f8109f84ef5546 (diff)
Build: Ensure paths passed to find_package HINTS argument only use forward slashes since that is what cmake expects
(cherry picked from commit 26cebef0fe13027c316f47b7e82ad0f49f84268a)
-rw-r--r--dep/boost/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/dep/boost/CMakeLists.txt b/dep/boost/CMakeLists.txt
index baebfdbf3c8..204cdce3398 100644
--- a/dep/boost/CMakeLists.txt
+++ b/dep/boost/CMakeLists.txt
@@ -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)