diff options
author | Brad King <brad.king@kitware.com> | 2022-10-11 14:04:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-10-11 14:04:48 (GMT) |
commit | 01768850b85b504f681128ab893b1aa6dd110010 (patch) | |
tree | 74bf474ecfc3e061b6c0e0003361c21ac9d26a38 /Modules | |
parent | 290521099979a58bfc3ae044d5730765198f21b1 (diff) | |
parent | 6021fa7928c716e5e83fa74a8dfb09cfcf45d53e (diff) | |
download | CMake-01768850b85b504f681128ab893b1aa6dd110010.zip CMake-01768850b85b504f681128ab893b1aa6dd110010.tar.gz CMake-01768850b85b504f681128ab893b1aa6dd110010.tar.bz2 |
Merge topic 'hip_use_cmake_path'
6021fa7928 HIP: Convert clang output to cmake style paths
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7772
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineHIPCompiler.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineHIPCompiler.cmake b/Modules/CMakeDetermineHIPCompiler.cmake index 7b7d7a3..6294d04 100644 --- a/Modules/CMakeDetermineHIPCompiler.cmake +++ b/Modules/CMakeDetermineHIPCompiler.cmake @@ -86,6 +86,7 @@ if(NOT CMAKE_HIP_COMPILER_ROCM_ROOT AND CMAKE_HIP_COMPILER_ID STREQUAL "Clang") if(_CMAKE_HIP_COMPILER_RESULT EQUAL 0 AND _CMAKE_HIP_COMPILER_STDERR MATCHES "Found HIP installation: *([^,]*)[,\n]") set(CMAKE_HIP_COMPILER_ROCM_ROOT "${CMAKE_MATCH_1}") + file(TO_CMAKE_PATH "${CMAKE_HIP_COMPILER_ROCM_ROOT}" CMAKE_HIP_COMPILER_ROCM_ROOT) endif() endif() if(NOT CMAKE_HIP_COMPILER_ROCM_ROOT) |