HIP: Really forward CMAKE_HIP_HOST_COMPILER in check_language(HIP)

In commit b3e92775ab (HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is
NVCC, 2023-09-25, v3.28.0-rc1~44^2~2) we accidentally left this out.
This commit is contained in:
Gergely Meszaros authored and Brad King committed 2024-01-03 18:15:21 -05:00
1 parent a0a5a5b85a
commit 9ba3fc91e5
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,7 @@ macro(check_language lang)
set(extra_compiler_variables)
if("${lang}" MATCHES "^(CUDA|HIP)$" AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
set(extra_compiler_variables "set(CMAKE_CUDA_HOST_COMPILER \\\"\${CMAKE_CUDA_HOST_COMPILER}\\\")")
set(extra_compiler_variables "set(CMAKE_${lang}_HOST_COMPILER \\\"\${CMAKE_${lang}_HOST_COMPILER}\\\")")
endif()
set(_cl_content