Skip to content

Commit

Permalink
Fixed error with CMake due to missing Rustc
Browse files Browse the repository at this point in the history
This occurs because `C:\Users` is interpreted as containing the escape
character `\U`.
  • Loading branch information
obsgolem authored and jschwe committed Nov 20, 2024
1 parent c05ee36 commit a02953b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ else()
else()
find_program(_Rust_COMPILER_TEST rustc PATHS "$ENV{HOME}/.cargo/bin")
if(NOT EXISTS "${_Rust_COMPILER_TEST}")
set(_ERROR_MESSAGE "`rustc` not found in PATH or `$ENV{HOME}/.cargo/bin`.\n"
cmake_path(CONVERT "$ENV{HOME}/.cargo/bin" TO_CMAKE_PATH_LIST _cargo_bin_dir)
set(_ERROR_MESSAGE "`rustc` not found in PATH or `${_cargo_bin_dir}`.\n"
"Hint: Check if `rustc` is in PATH or manually specify the location "
"by setting `Rust_COMPILER` to the path to `rustc`.")
_findrust_failed(${_ERROR_MESSAGE})
Expand Down

0 comments on commit a02953b

Please sign in to comment.