diff options
author | Brad King <brad.king@kitware.com> | 2023-05-31 20:41:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-05-31 20:53:47 (GMT) |
commit | bae57dc28179022ba0b654368efc451e36db6396 (patch) | |
tree | 01beb28fdb3baad6f1532bba58583a4999ecf294 /Modules/CMakeHIPCompiler.cmake.in | |
parent | cc737ae8295156812e697a9d2f3f7b79bf7b72c8 (diff) | |
download | CMake-bae57dc28179022ba0b654368efc451e36db6396.zip CMake-bae57dc28179022ba0b654368efc451e36db6396.tar.gz CMake-bae57dc28179022ba0b654368efc451e36db6396.tar.bz2 |
HIP: Fix search for hip-lang CMake package on multiarch distros
We need `CMAKE_LIBRARY_ARCHITECTURE` to find the package before HIP
compiler ABI detection. However, if HIP is the first enabled language,
the value is not known until `CMAKE_HIP_LIBRARY_ARCHITECTURE` is
determined by the ABI detection step. Resolve this by detecting
`CMAKE_HIP_LIBRARY_ARCHITECTURE` from the compiler id output.
Fixes: #24562
Diffstat (limited to 'Modules/CMakeHIPCompiler.cmake.in')
-rw-r--r-- | Modules/CMakeHIPCompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeHIPCompiler.cmake.in b/Modules/CMakeHIPCompiler.cmake.in index c94153b..0fa5bf0 100644 --- a/Modules/CMakeHIPCompiler.cmake.in +++ b/Modules/CMakeHIPCompiler.cmake.in @@ -18,6 +18,7 @@ set(CMAKE_HIP_SIMULATE_VERSION "@CMAKE_HIP_SIMULATE_VERSION@") @SET_MSVC_HIP_ARCHITECTURE_ID@ @_SET_CMAKE_HIP_COMPILER_SYSROOT@ set(CMAKE_HIP_COMPILER_ROCM_ROOT "@CMAKE_HIP_COMPILER_ROCM_ROOT@") +set(CMAKE_HIP_COMPILER_ROCM_LIB "@CMAKE_HIP_COMPILER_ROCM_LIB@") set(CMAKE_HIP_COMPILER_ENV_VAR "HIPCXX") |