summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-11 14:04:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-11 14:04:48 (GMT)
commit01768850b85b504f681128ab893b1aa6dd110010 (patch)
tree74bf474ecfc3e061b6c0e0003361c21ac9d26a38 /Modules
parent290521099979a58bfc3ae044d5730765198f21b1 (diff)
parent6021fa7928c716e5e83fa74a8dfb09cfcf45d53e (diff)
downloadCMake-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.cmake1
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)