diff options
author | Gergely Meszaros <gergely@streamhpc.com> | 2024-01-02 15:18:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-03 23:15:21 (GMT) |
commit | 9ba3fc91e5ce567b0f50b28573af9508242446d6 (patch) | |
tree | 060f33610adef0ceaf1b2d13d456aee543e208ec | |
parent | a0a5a5b85a20fd40985bd05d0a7ab45ec83a4c4e (diff) | |
download | CMake-9ba3fc91e5ce567b0f50b28573af9508242446d6.zip CMake-9ba3fc91e5ce567b0f50b28573af9508242446d6.tar.gz CMake-9ba3fc91e5ce567b0f50b28573af9508242446d6.tar.bz2 |
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.
-rw-r--r-- | Modules/CheckLanguage.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckLanguage.cmake b/Modules/CheckLanguage.cmake index 94948b9..358c435 100644 --- a/Modules/CheckLanguage.cmake +++ b/Modules/CheckLanguage.cmake @@ -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 |